From 8d8e5746dfe8201152e597b9987b751ddb222555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 22 Sep 2022 12:29:07 +0200 Subject: [PATCH] [FIX] account_financial_report: Update the correct data. --- account_financial_report/report/general_ledger_xlsx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_financial_report/report/general_ledger_xlsx.py b/account_financial_report/report/general_ledger_xlsx.py index 5f916fbb..aad46ce6 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -240,8 +240,8 @@ class GeneralLedgerXslx(models.AbstractModel): } ) if foreign_currency: - account.update( - {"initial_bal_curr": account["init_bal"]["bal_curr"]} + group_item.update( + {"initial_bal_curr": group_item["init_bal"]["bal_curr"]} ) self.write_initial_balance_from_dict(group_item)