[FIX] website: prevent snippet drop in product_catalog
Before this commit, a user would be able to drop pretty much any snippet inside the product_catalog (pricelist) snippet. This was not ideal as the snippet wasn't designed to receive any other snippets inside of it. With this commit, the configuration of the snippet is closer to snippets such as timeline, allowing lines to be moved around without allowing snippets to be dropped inside it. task-2655171 closes odoo/odoo#78185 X-original-commit: 086bef8ffaff29a12836a36baed6cfb0ffea7da0 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
Arthur Detroux (ard)
parent
e67463fbf1
commit
9b47e248de
@@ -90,11 +90,10 @@
|
||||
<!-- Note: no need of extra dependency thanks to the apply-to -->
|
||||
</t>
|
||||
</div>
|
||||
<div data-selector=".s_product_catalog_dish"/>
|
||||
<div data-selector=".s_product_catalog_dish" data-drop-near=".s_product_catalog_dish"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@data-js='SnippetMove']" position="attributes">
|
||||
<attribute name="data-selector" add=".s_product_catalog_dish" separator=","/>
|
||||
<attribute name="data-drop-near" add=".s_product_catalog_dish" separator=","/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user