[FIX] website_sale_aplicoop: translate cart labels safely
This commit is contained in:
parent
603e6b6aa1
commit
c17bd7eddd
4 changed files with 17 additions and 16 deletions
|
|
@ -636,8 +636,8 @@
|
|||
<t t-set="safe_uom_category" t-value="product_display_info.get(product.id, {}).get('safe_uom_category', '')" />
|
||||
<t t-set="quantity_step" t-value="product_display_info.get(product.id, {}).get('quantity_step', 1)" />
|
||||
<t t-set="order_id_safe" t-value="group_order.id if group_order else ''" />
|
||||
<t t-set="out_of_stock_label" t-value="_('Out of stock')" />
|
||||
<t t-set="add_to_cart_label" t-value="_('Add %(product_name)s to cart') % {'product_name': product.name}" />
|
||||
<t t-set="out_of_stock_label" t-value="product_display_info.get(product.id, {}).get('out_of_stock_label', 'Out of stock')" />
|
||||
<t t-set="add_to_cart_label" t-value="product_display_info.get(product.id, {}).get('add_to_cart_label', 'Add to cart')" />
|
||||
<form
|
||||
class="add-to-cart-form"
|
||||
t-attf-data-order-id="{{ order_id_safe }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue