[IMP] account_financial_report: Add Amount cur. to General Ledger totals if the account has not set currency

Related to https://github.com/OCA/account-financial-reporting/pull/1235#issuecomment-2419269015

[FIX] account_financial_report: Avoid error in General ledger if the Show foreign currency checkbox is not checked.

Related to https://github.com/OCA/account-financial-reporting/pull/1236

TT51996
This commit is contained in:
Víctor Martínez
2024-10-17 16:21:50 +02:00
committed by chaule97
parent 01b2e35847
commit 9c59addd0f
3 changed files with 61 additions and 4 deletions

View File

@@ -702,10 +702,10 @@
/>
<t t-set="misc_grouped_domain" t-value="[]" t-else="" />
<t t-if="foreign_currency">
<t t-if="account['currency_id']">
<t t-if="account['fin_bal_currency_id']">
<t
t-set="account_currency"
t-value="currency_model.browse(account['currency_id'])"
t-value="currency_model.browse(account['fin_bal_currency_id'])"
/>
<div class="act_as_cell amount" style="width: 3.63%;">
<t t-if="type == 'account_type'">