[IMP] website_event_sale: don't display reduction for product event in my cart

bzr revid: chm@openerp.com-20140129094220-alhq9n8eevc3fvbt
This commit is contained in:
Christophe Matthieu
2014-01-29 10:42:20 +01:00
parent ca2991908c
commit 5b54fa0061
2 changed files with 7 additions and 1 deletions
@@ -13,6 +13,12 @@
</xpath>
</template>
<template id="mycart" inherit_id="website_sale.mycart" name="My Cart Event's Price">
<xpath expr="//td[@name='price']/t" position="attributes">
<attribute name="t-if">abs(line.product_id.lst_price - line.price_unit) &gt; 0.2 and not line.product_id.event_ok</attribute>
</xpath>
</template>
<template id="event_description_full" inherit_id="website_event.event_description_full" inherit_option_id="website_event.event_description_full" name="Event's Ticket form">
<xpath expr="//div[@t-field='event.description']" position="before">
<form t-attf-action="/event/add_cart?event_id=#{ event.id }" method="post" t-if="event.event_ticket_ids">
+1 -1
View File
@@ -493,7 +493,7 @@
</div>
<div class="text-muted" t-field="line.product_id.description_sale"/>
</td>
<td class="text-center">
<td class="text-center" name="price">
<t t-if="abs(line.product_id.lst_price - line.price_unit) &gt; 0.2">
<del class="text-danger"
t-field="line.product_id.lst_price" t-field-options='{