From 73bcbfb8720fe4942b66aff1e1ae8bbba78b2fea Mon Sep 17 00:00:00 2001 From: "Antoine (anso)" Date: Tue, 2 Sep 2025 17:12:13 +0200 Subject: [PATCH] [IMP] theme_cobalt: add and customize wsale categories snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit includes and customize the `website_sale.s_dynamic_snippet_category_list` snippet in the default snippet sequence of the theme's homepage. task-5009694 Part-of: odoo/design-themes#1137 Related: odoo/odoo#225310 Signed-off-by: Antoine Sougné (anso) --- theme_cobalt/__manifest__.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/theme_cobalt/__manifest__.py b/theme_cobalt/__manifest__.py index b71e1a984..8bb064869 100644 --- a/theme_cobalt/__manifest__.py +++ b/theme_cobalt/__manifest__.py @@ -20,6 +20,30 @@ 'configurator_snippets': { 'homepage': ['s_banner', 's_image_text', 's_key_images', 's_text_image', 's_company_team_detail', 's_references_grid'], }, + 'configurator_snippets_addons': { + 'website_sale': { + 'homepage': [ + ('website_sale.s_dynamic_snippet_category_list', 'after', 's_banner'), + ], + }, + }, + 'theme_customizations': { + 'website_sale.s_dynamic_snippet_category_list': { + 'data_attributes': { + 'gap': '3', + 'alignment': 'right', + }, + 'background': { + 'color': 'o_cc2', + }, + 'add_classes': [ + 'pt48', 'pb48', + ], + 'remove_classes': [ + 'pt64', 'pb64', 's_dynamic_category_no_arrows', + ], + }, + }, 'author': 'Odoo S.A.', 'license': 'LGPL-3', 'live_test_url': 'https://theme-cobalt.odoo.com',