Skip to content

Commit 2a96fa5

Browse files
committed
[IMP] theme_{*}: add configurator_snippets_addons to support dynamic snippets
After this commit: - manifests now have 'configurator_snippets_addons' which allows to define module and page specific dynamic snippets that are intended to load in website's pages when website is created through configurator. task-4502087
1 parent b9af66a commit 2a96fa5

File tree

27 files changed

+262
-0
lines changed

27 files changed

+262
-0
lines changed

theme_anelusia/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
'configurator_snippets': {
8787
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references', 's_media_list','s_key_images', 's_call_to_action'],
8888
},
89+
'configurator_snippets_addons': {
90+
'website_sale': {
91+
'homepage': [
92+
('website_sale.s_dynamic_snippet_products', 'after', 's_images_wall'),
93+
],
94+
},
95+
},
8996
'author': 'Odoo S.A.',
9097
'license': 'LGPL-3',
9198
'live_test_url': 'https://theme-anelusia.odoo.com',

theme_artists/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@
132132
'configurator_snippets': {
133133
'homepage': ['s_sidegrid', 's_product_catalog', 's_cta_box', 's_title', 's_image_frame', 's_images_wall', 's_shape_image'],
134134
},
135+
'configurator_snippets_addons': {
136+
'website_sale': {
137+
'homepage': [
138+
('website_sale.s_dynamic_snippet_products', 'after', 's_product_catalog'),
139+
],
140+
},
141+
},
135142
'author': 'Odoo S.A.',
136143
'license': 'LGPL-3',
137144
'live_test_url': 'https://theme-artists.odoo.com',

theme_avantgarde/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
'configurator_snippets': {
2626
'homepage': ['s_sidegrid', 's_features_wall', 's_carousel', 's_timeline', 's_quadrant'],
2727
},
28+
'configurator_snippets_addons': {
29+
'website_sale': {
30+
'homepage': [
31+
('website_sale.s_dynamic_snippet_products', 'after', 's_features_wall'),
32+
],
33+
},
34+
},
2835
'depends': ['theme_common'],
2936
'author': 'Odoo S.A.',
3037
'license': 'LGPL-3',

theme_aviato/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@
8080
'configurator_snippets': {
8181
'homepage': ['s_banner', 's_text_image', 's_image_text', 's_picture', 's_title', 's_masonry_block_default_template', 's_company_team', 's_showcase', 's_quotes_carousel'],
8282
},
83+
'configurator_snippets_addons': {
84+
'website_sale': {
85+
'homepage': [
86+
('website_sale.s_dynamic_snippet_products', 'after', 's_text_image'),
87+
],
88+
},
89+
},
8390
'author': 'Odoo S.A.',
8491
'license': 'LGPL-3',
8592
'live_test_url': 'https://theme-aviato.odoo.com',

theme_beauty/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@
8383
'configurator_snippets': {
8484
'homepage': ['s_intro_pill', 's_masonry_block_mosaic_template', 's_pricelist_boxed', 's_features_wall', 's_image_frame', 's_call_to_action'],
8585
},
86+
'configurator_snippets_addons': {
87+
'website_sale': {
88+
'homepage': [
89+
('website_sale.s_dynamic_snippet_products', 'after', 's_masonry_block_mosaic_template'),
90+
],
91+
},
92+
},
8693
'author': 'Odoo S.A.',
8794
'license': 'LGPL-3',
8895
'live_test_url': 'https://theme-beauty.odoo.com',

theme_bewise/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
'configurator_snippets': {
2727
'homepage': ['s_striped_center_top', 's_title', 's_color_blocks_2', 's_faq_collapse', 's_masonry_block_default_template', 's_company_team_shapes'],
2828
},
29+
'configurator_snippets_addons': {
30+
'website_sale': {
31+
'homepage': [
32+
('website_sale.s_dynamic_snippet_products', 'after', 's_title'),
33+
],
34+
},
35+
},
2936
'author': 'Odoo S.A.',
3037
'license': 'LGPL-3',
3138
'live_test_url': 'https://theme-bewise.odoo.com',

theme_bistro/__manifest__.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,39 @@
8181
'homepage': ['s_image_title', 's_key_images', 's_pricelist_cafe', 's_quotes_carousel', 's_quadrant'],
8282
'pricing': ["s_text_image", "s_product_catalog"],
8383
},
84+
'configurator_snippets_addons': {
85+
'website_sale': {
86+
'homepage': [
87+
('website_sale.s_dynamic_snippet_products', 'after', 's_key_images'),
88+
],
89+
},
90+
},
91+
'theme_customizations': {
92+
'website_sale.s_dynamic_snippet_products': {
93+
'data_attributes': {
94+
'number-of-records': '6',
95+
'carousel-interval': '3000',
96+
},
97+
'background': {
98+
'color': 'o_cc3',
99+
'shape': {
100+
'data-oe-shape-data': '{"shape":"web_editor/Wavy/07","flip":["x"]}',
101+
'element': """<div class="o_we_shape o_web_editor_Airy_07_001" style="background-image: url(&quot;/web_editor/shape/web_editor/Airy/07_001.svg?c5=rgba(255,255,255,0.25)&quot;); left: -0.165px; right: -0.165px; background-position: 50% 0%;"/>""",
102+
},
103+
},
104+
'add_classes': [
105+
'o_wsale_products_opt_design_grid',
106+
'o_wsale_products_opt_has_comparison',
107+
],
108+
'remove_classes': [
109+
'o_wsale_products_opt_design_thumbs',
110+
'o_wsale_products_opt_has_description',
111+
],
112+
'style_attributes': {
113+
'color': 'brown',
114+
},
115+
},
116+
},
84117
'author': 'Odoo S.A.',
85118
'license': 'LGPL-3',
86119
'live_test_url': 'https://theme-bistro.odoo.com',

theme_bookstore/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@
8383
'configurator_snippets': {
8484
'homepage': ['s_banner', 's_key_images', 's_title', 's_accordion_image', 's_cta_box'],
8585
},
86+
'configurator_snippets_addons': {
87+
'website_sale': {
88+
'homepage': [
89+
('website_sale.s_dynamic_snippet_products', 'after', 's_key_images'),
90+
],
91+
},
92+
},
8693
'new_page_templates': {
8794
'about': {
8895
'personal': ['s_text_cover', 's_image_text', 's_text_block_h2', 's_numbers', 's_features', 's_call_to_action'],

theme_buzzy/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@
7777
'configurator_snippets': {
7878
'homepage': ['s_banner', 's_discovery', 's_showcase', 's_key_benefits', 's_accordion_image', 's_cta_box'],
7979
},
80+
'configurator_snippets_addons': {
81+
'website_sale': {
82+
'homepage': [
83+
('website_sale.s_dynamic_snippet_products', 'after', 's_discovery'),
84+
],
85+
},
86+
},
8087
'new_page_templates': {
8188
'about': {
8289
'personal': ['s_text_cover', 's_image_text', 's_text_block_h2', 's_numbers', 's_features', 's_call_to_action'],

theme_clean/__manifest__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@
6464
'configurator_snippets': {
6565
'homepage': ['s_banner', 's_color_blocks_2', 's_title', 's_text_image', 's_image_text', 's_numbers_showcase', 's_company_team', 's_accordion_image', 's_cta_card'],
6666
},
67+
'configurator_snippets_addons': {
68+
'website_sale': {
69+
'homepage': [
70+
('website_sale.s_dynamic_snippet_products', 'after', 's_color_blocks_2'),
71+
],
72+
},
73+
},
6774
'author': 'Odoo S.A.',
6875
'license': 'LGPL-3',
6976
'live_test_url': 'https://theme-clean.odoo.com',

0 commit comments

Comments
 (0)