[FIX] website_sale: missing class for cart warning

Before this commit, the warning message on the cart could be duplicated
when editing the cart, as it was not reloaded by the js. This commit
makes sure that the warning message is re-rendered, and removed if
needed.

task-3537684

Part-of: odoo/odoo#137844
This commit is contained in:
vava-odoo
2023-10-19 17:01:11 +00:00
parent 7109f480ec
commit ce24ef8e13
+1 -1
View File
@@ -1446,7 +1446,7 @@
Your cart is empty!
</div>
<t t-if='website_sale_order'>
<div t-if='website_sale_order._get_shop_warning(clear=False)' class="alert alert-warning" role="alert">
<div t-if='website_sale_order._get_shop_warning(clear=False)' class="alert alert-warning js_cart_lines" role="alert">
<strong>Warning!</strong> <t t-esc='website_sale_order._get_shop_warning()'/>
</div>
</t>