[FIX] website_event_sale: don't display event ticket discount in cart
This commit is contained in:
@@ -79,5 +79,11 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="cart" inherit_id="website_sale.cart" name="Hide product reduction for event tickets">
|
||||
<xpath expr="//del" position="attributes">
|
||||
<attribute name="t-attf-class" separator=" " add="#{line.event_id and 'hidden' or ''}"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
@@ -778,7 +778,7 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center" id="td-price" name="price">
|
||||
<del class="text-danger mr8" t-att-style="'' if (compute_currency(line.product_id.lst_price) - line.price_reduce) > 1 else 'display: none;'" style="text-decoration: line-through; white-space: nowrap;"
|
||||
<del t-attf-class="text-danger mr8 #{compute_currency(line.product_id.lst_price) - line.price_reduce < 1 and 'hidden' or ''}" 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",
|
||||
|
||||
Reference in New Issue
Block a user