[FIX] website_event_sale: don't display event ticket discount in cart

This commit is contained in:
Christophe Matthieu
2015-09-30 16:24:45 +02:00
parent a04dcd8b26
commit 6784b1af78
2 changed files with 7 additions and 1 deletions
@@ -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>
+1 -1
View File
@@ -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) &gt; 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 &lt; 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",