[IMP] account_financial_report: common format for all amounts

In the open items report, the currency original and residual
fields were being displayed as regular float fields. With
this change they are printed with the corresponding format
for the currency of the journal item.
pull/939/head
Lois Rilo 2022-07-19 16:49:01 +02:00 committed by David Ramia
parent f21028acf4
commit 03ba2590bc
1 changed files with 8 additions and 2 deletions

View File

@ -248,11 +248,17 @@
</div>
<!--## amount_total_due_currency-->
<div class="act_as_cell amount">
<span t-esc="line['amount_currency']" />
<span
t-esc="line['amount_currency']"
t-options="{'widget': 'monetary', 'display_currency': env['res.currency'].browse(line['currency_id'])}"
/>
</div>
<!--## amount_residual_currency-->
<div class="act_as_cell amount">
<span t-esc="line['amount_residual_currency']" />
<span
t-esc="line['amount_residual_currency']"
t-options="{'widget': 'monetary', 'display_currency': env['res.currency'].browse(line['currency_id'])}"
/>
</div>
</t>
<t t-if="not line['currency_id']">