[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/893/head
Lois Rilo 2022-07-19 16:49:01 +02:00
parent e788af5135
commit a84bbbc767
1 changed files with 8 additions and 2 deletions

View File

@ -248,11 +248,17 @@
</div> </div>
<!--## amount_total_due_currency--> <!--## amount_total_due_currency-->
<div class="act_as_cell amount"> <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> </div>
<!--## amount_residual_currency--> <!--## amount_residual_currency-->
<div class="act_as_cell amount"> <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> </div>
</t> </t>
<t t-if="not line['currency_id']"> <t t-if="not line['currency_id']">