Skip to content
Snippets Groups Projects
Commit ee8e3d69 authored by Nicolas Martinelli's avatar Nicolas Martinelli Committed by Nicolas Martinelli
Browse files

[FIX] account, l10n_be_invoice_bba, purchase, repair, sale: format_amount

Use `format_amount` in the mail templates in order to format as a
regular amount (with rounding and symbol).

opw-805370
parent 6d92fc93
Branches
Tags
No related merge requests found
......@@ -35,7 +35,7 @@ invoice
% if object.origin:
(with reference: ${object.origin})
% endif
amounting in <strong>${object.amount_total} ${object.currency_id.name}</strong>
amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
from ${object.company_id.name}.
</p>
......
......@@ -21,7 +21,7 @@ pro-forma invoice
% if object.origin:
(with reference: ${object.origin} )
% endif
amounting in <strong>${object.amount_total} ${object.currency_id.name}</strong>
amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
from ${object.company_id.name}.
</p>
......
......@@ -28,7 +28,7 @@ Here is, in attachment, a ${object.state in ('draft', 'sent') and 'request for q
% if object.origin:
(RFQ origin: ${object.origin})
% endif
amounting in <strong>${object.amount_total} ${object.currency_id.name}</strong>
amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
from ${object.company_id.name}.
</p>
......
......@@ -20,7 +20,7 @@
(with reference: ${object.origin} )
% endif
% if object.invoice_method != 'none':
amounting in <strong>${object.amount_total} ${object.pricelist_id.currency_id.name}.</strong>
amounting in <strong>${format_amount(object.amount_total, object.pricelist_id.currency_id)}.</strong>
% endif
</p>
<p>You can reply to this email if you have any questions.</p>
......
......@@ -36,7 +36,7 @@ the ${doc_name} <strong>${object.name}</strong>
% if object.origin:
(with reference: ${object.origin} )
% endif
amounting in <strong>${object.amount_total} ${object.pricelist_id.currency_id.name}</strong>
amounting in <strong>${format_amount(object.amount_total, object.pricelist_id.currency_id)}</strong>
from ${object.company_id.name}.
</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment