[FW][FIX] website_sale: toggle T&C display from customize tab

Before this commit, users could not disable the Terms and Conditions display on the product page from the Customize tab of the web editor. To remove it from the product page, the only workaround was to remove the text in that div.

Now, a button will be available in the Customize tab of the web editor to quickly show or hide the Terms and Conditions.

closes odoo/odoo#161354

Forward-port-of: odoo/odoo#161230
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
This commit is contained in:
imanie383
2024-04-11 00:15:44 +00:00
parent aa67ae7879
commit 2d79430e18
+1 -1
View File
@@ -1207,7 +1207,7 @@
</div>
</template>
<template id="product_custom_text" inherit_id="website_sale.product" active="True" name="Terms and Conditions" priority="21">
<template id="product_custom_text" inherit_id="website_sale.product" customize_show="True" active="True" name="Terms and Conditions" priority="21">
<xpath expr="//div[@id='o_product_terms_and_share']" position="inside">
<p class="text-muted mb-0">
<a href="/terms" class="text-muted"><u>Terms and Conditions</u></a><br/>