[FIX] website_sale: the price per line display a wrong reduction if the tax is include

This commit is contained in:
Christophe Matthieu 2014-12-19 15:13:10 +01:00
parent 718c94cb48
commit d9e0997ffd
1 changed files with 3 additions and 3 deletions

View File

@ -683,15 +683,15 @@
<div class="text-muted" t-field="line.name"/>
</td>
<td class="text-center" name="price">
<t t-if="(line.price_unit - line.price_reduce) &gt; 1">
<t t-if="(compute_currency(line.product_id.lst_price) - line.price_unit) &gt; 1">
<del class="text-danger" style="white-space: nowrap;"
t-field="line.price_unit" t-field-options='{
t-field="line.product_id.lst_price" t-field-options='{
"widget": "monetary",
"from_currency": "line.company_id.currency_id",
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
}'/>&amp;nbsp;
</t>
<span t-field="line.price_reduce" style="white-space: nowrap;" t-field-options='{
<span t-field="line.price_unit" style="white-space: nowrap;" t-field-options='{
"widget": "monetary",
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
}'/>