[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.
This commit is contained in:
Lois Rilo
2022-07-19 16:49:01 +02:00
committed by chaule97
parent 3c016f362b
commit 4ac0f4efbb

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']">