From f16b46e4c5f0648b80f8f92616d8cfa3c21e768e Mon Sep 17 00:00:00 2001 From: Aritz Olea Date: Thu, 14 Sep 2023 13:30:21 +0200 Subject: [PATCH] [FIX] account_financial_report: Initial currency balance value on trial balance report --- account_financial_report/report/trial_balance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account_financial_report/report/trial_balance.py b/account_financial_report/report/trial_balance.py index f0c57dd5..e3e1a215 100644 --- a/account_financial_report/report/trial_balance.py +++ b/account_financial_report/report/trial_balance.py @@ -216,6 +216,8 @@ class TrialBalanceReport(models.AbstractModel): total_amount[acc_id]["debit"] = tb["debit"] total_amount[acc_id]["balance"] = tb["balance"] total_amount[acc_id]["initial_balance"] = 0.0 + if foreign_currency: + total_amount[acc_id]["initial_currency_balance"] = 0.0 for tb in tb_initial_acc: acc_id = tb["account_id"] if acc_id not in total_amount.keys():