summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRohan Patel <rop@odoo.com>2016-09-20 13:02:13 +0530
committerDenis Vermylen <dve@odoo.com>2017-01-10 14:34:18 +0100
commitc4ea772ddbf75cfda7a80334a4daca83e0ded57d (patch)
treef17923f6dae32e9ad7e253da31403aef68a52ba1 /addons
parent7be3f7eee9492f74fc00de7a90aa48d05ec82894 (diff)
[IMP] website_quote: add currency symbol
to discounted price on quotations in the front-end.
Diffstat (limited to 'addons')
-rw-r--r--addons/website_quote/views/website_quote_templates.xml5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/website_quote/views/website_quote_templates.xml b/addons/website_quote/views/website_quote_templates.xml
index 55dc0030d26..545a30438b9 100644
--- a/addons/website_quote/views/website_quote_templates.xml
+++ b/addons/website_quote/views/website_quote_templates.xml
@@ -70,9 +70,8 @@
t-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'
t-att-style="line.discount and 'text-decoration: line-through' or None"
t-att-class="(line.discount and 'text-danger' or '') + ' text-right'"/>
- <!-- TODO: apply monetary widget formating -->
<div t-if="line.discount">
- <t t-esc="'%.2f' % ((1-line.discount / 100.0) * line.price_unit)"/>
+ <t t-esc="(1-line.discount / 100.0) * line.price_unit" t-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'/>
</div>
</td>
<td class="text-right" groups="sale.group_show_price_subtotal">
@@ -619,7 +618,7 @@
t-att-style="option.discount and 'text-decoration: line-through' or None"
t-att-class="option.discount and 'text-danger' or None"/>
<div t-if="option.discount">
- <t t-esc="'%.2f' % ((1-option.discount / 100.0) * option.price_unit)"/>
+ <t t-esc="(1-option.discount / 100.0) * option.price_unit" t-options='{"widget": "monetary", "display_currency": quotation.pricelist_id.currency_id}'/>
</div>
</strong>
</td>