[FIX] website_sale: correctly display price reduced in cart
The price reduced is not correctly calculated in the cart. It is for example the case if the products has included taxes. opw-653464
This commit is contained in:
@@ -772,15 +772,14 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center" id="td-price" name="price">
|
||||
<del t-attf-class="text-danger #{compute_currency(line.product_id.lst_price) - line.price_reduce < 1 and 'hidden' or ''}" style="text-decoration: line-through; white-space: nowrap;"
|
||||
<del t-attf-class="text-danger #{'' if (compute_currency(line.product_id.lst_price) - line.price_unit) > 0.1 else 'hidden'}" style="text-decoration: line-through; white-space: nowrap;"
|
||||
t-field="line.product_id.lst_price" t-field-options='{
|
||||
"widget": "monetary",
|
||||
"from_currency": "line.company_id.currency_id",
|
||||
"display_currency": "website.currency_id"
|
||||
}'/>
|
||||
<span t-field="line.price_reduce" style="white-space: nowrap;" t-field-options='{
|
||||
<span t-field="line.price_unit" style="white-space: nowrap;" t-field-options='{
|
||||
"widget": "monetary",
|
||||
"from_currency": "website_sale_order.pricelist_id.currency_id",
|
||||
"display_currency": "website.currency_id"
|
||||
}'/>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user