[FIX] account_financial_report: Display the values of Amount cur. + Cumul cur. values in general ledger only if necessary

The currency_id field of the lines is always set, so follow the same logic as
in report/templates/general_ledger and show the data only if the currency is set
in the account.

TT51204
This commit is contained in:
Víctor Martínez
2024-10-10 09:40:36 +02:00
committed by chaule97
parent 1af1121962
commit 3d36527370
2 changed files with 24 additions and 12 deletions

View File

@@ -367,10 +367,7 @@
</t>
</div>
<!-- Display each lines -->
<t
t-set="total_bal_curr"
t-value="account_or_group_item_object['init_bal'].get('bal_curr', 0)"
/>
<t t-set="total_bal_curr" t-value="0" />
<t t-foreach="account_or_group_item_object['move_lines']" t-as="line">
<!-- # lines or centralized lines -->
<div class="act_as_row lines">