[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user