From 0e2862cc6a58fa0d0178b33ccaf02ba92082af13 Mon Sep 17 00:00:00 2001 From: "Antoine (anso)" Date: Tue, 2 Sep 2025 17:11:58 +0200 Subject: [PATCH] [IMP] theme_bookstore: 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_bookstore/__manifest__.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/theme_bookstore/__manifest__.py b/theme_bookstore/__manifest__.py index 430be52fd..6e47108a9 100644 --- a/theme_bookstore/__manifest__.py +++ b/theme_bookstore/__manifest__.py @@ -83,6 +83,29 @@ 'configurator_snippets': { 'homepage': ['s_banner', 's_key_images', 's_title', 's_accordion_image', 's_cta_box'], }, + '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': { + 'template_key': ( + 'website_sale.dynamic_filter_template_product_public_category_default' + ), + 'data_attributes': { + 'gap': '4', + }, + 'background': { + 'color': 'o_cc2', + }, + 'remove_classes': [ + 's_dynamic_category_clickable_items', + ], + }, + }, 'new_page_templates': { 'about': { 'personal': ['s_text_cover', 's_image_text', 's_text_block_h2', 's_numbers', 's_features', 's_call_to_action'],