Skip to content

Commit 2f2fbeb

Browse files
committed
fixup! [IMP] theme_{*}: add configurator_snippets_addons to support dynamic snippets
1 parent 4f51561 commit 2f2fbeb

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

theme_anelusia/__manifest__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
'views/snippets/s_empowerment.xml',
6565
'views/snippets/s_numbers_boxed.xml',
6666
'views/snippets/s_split_intro.xml',
67+
'views/snippets/s_dynamic_snippet_products.xml',
6768
'views/new_page_template.xml',
6869
],
6970
'images': [
@@ -89,7 +90,12 @@
8990
'configurator_snippets_addons': {
9091
'website_sale': {
9192
'homepage': [
92-
('website_sale.s_dynamic_snippet_products', 'after', 's_images_wall'),
93+
# This one works perfectly, the customisations are applied on the homepage
94+
# AND after drag and drop from the snippets modal
95+
('theme_anelusia.s_comparisons', 'after', 's_text_cover'),
96+
# This one doesn't, the customisations are not applied on the homepage
97+
# BUT they are applied after drag and drop from the snippets modal
98+
('theme_anelusia.s_dynamic_snippet_products', 'after', 's_images_wall'),
9399
],
94100
},
95101
},
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_dynamic_snippet_products" inherit_id="website_sale.s_dynamic_snippet_products">
5+
<xpath expr="(//t[@t-set='default_design_classes'])[2]" position="attributes">
6+
<attribute name="t-value">'testanso'</attribute>
7+
</xpath>
8+
</template>
9+
10+
</odoo>

0 commit comments

Comments
 (0)