refactor: remove legacy website snippet configurations and clean up theme structure

This commit is contained in:
hoangvv
2026-08-13 16:15:21 +07:00
parent 860cf9cb0f
commit 4d9da4d492
16 changed files with 399 additions and 451 deletions
+2 -25
View File
@@ -38,33 +38,10 @@
<!--
============================================================================
Optional Product Dialog
Optional Product Dialog (removed in Odoo 18 — website_sale_product_configurator merged into website_sale)
Kept as no-op placeholders so upgrades do not leave orphan view xmlids if present.
============================================================================
-->
<template id="configure_optional_products" inherit_id="website_sale_product_configurator.configure_optional_products">
<xpath expr="//table" position="attributes">
<attribute name="class" add="border" remove="table-striped table-sm" separator=" "/>
</xpath>
<xpath expr="//thead" position="attributes">
<attribute name="class" add="thead-light" separator=" "/>
</xpath>
<xpath expr="//table//tr[hasclass('o_select_options')]/td" position="replace">
<td colspan="4" class="bg-200"><h5 class="mb-0">Available Options</h5></td>
</xpath>
</template>
<template id="optional_product_items" inherit_id="website_sale_product_configurator.optional_product_items">
<xpath expr="//a[hasclass('js_add')]" position="replace">
<a role="button" href="#" class="js_add btn btn-primary-soft mt-2" title="Add to cart">
<i class="dri dri-cart add-optionnal-item"></i>
</a>
</xpath>
<xpath expr="//a[hasclass('js_remove')]" position="replace">
<a role="button" href="#" class="js_remove text-danger mt-2 d-inline-block" title="Remove from cart">
<i class="fa fa-trash-o remove-optionnal-item"></i>
</a>
</xpath>
</template>
<!--
============================================================================