[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:
@@ -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) > 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">
|
||||
|
||||
@@ -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) > 0.2">
|
||||
<del class="text-danger"
|
||||
t-field="line.product_id.lst_price" t-field-options='{
|
||||
|
||||
Reference in New Issue
Block a user