[IMP] website_event: inherit website_sale mycart to don't display reduction if it's an event ticket price

bzr revid: chm@openerp.com-20130828094118-bzqgyuxc1ztqun8n
This commit is contained in:
Christophe Matthieu 2013-08-28 11:41:18 +02:00
parent ab08db3b87
commit 82c3c6bc33
2 changed files with 7 additions and 3 deletions

View File

@ -13,6 +13,12 @@
</xpath>
</template>
<template id="event_website_sale_mycart" inherit_id="website_sale.mycart">
<xpath expr="//small[@class='text-error']" position="replace">
<small t-if="line.product_id.lst_price != line.price_unit and not line.event_id" class="text-error" style="text-decoration: line-through;"><t t-esc="line.product_id.lst_price" /></small>
</xpath>
</template>
<!-- Page -->
<template id="index" name="Events" page="True">

View File

@ -229,9 +229,7 @@
<small t-field="line.product_id.description_sale"/>
</td>
<td>
<t t-if="line.product_id.lst_price != line.price_unit">
<small class="text-error" style="text-decoration: line-through;"><t t-esc="line.product_id.lst_price" /></small>
</t>
<small t-if="line.product_id.lst_price != line.price_unit" class="text-error" style="text-decoration: line-through;"><t t-esc="line.product_id.lst_price" /></small>
<span t-field="line.price_unit"></span>
</td>
<td>