From da7061cc725a5a2cb7e781a9c31f1cfff259f268 Mon Sep 17 00:00:00 2001 From: miguels73 <55379877+miguels73@users.noreply.github.com> Date: Thu, 22 Sep 2022 11:10:39 +0200 Subject: [PATCH] [14.0][FIX] account_financial_report: variable not defined - variable name have been changed in this commit but it not have been changed in all code. https://github.com/OCA/account-financial-reporting/commit/01efb031e17b510858acfda3214be67be022dd9a#diff-23868768c260356890af524cba5a535c8f73f525ef9490f326572dda4c1a4f20R235 --- 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 eb6b20c0..74983c03 100644 --- a/account_financial_report/report/general_ledger_xlsx.py +++ b/account_financial_report/report/general_ledger_xlsx.py @@ -253,9 +253,9 @@ class GeneralLedgerXslx(models.AbstractModel): } ) if foreign_currency: - partner.update( + group_item.update( { - "initial_bal_curr": partner["init_bal"]["bal_curr"], + "initial_bal_curr": group_item["init_bal"]["bal_curr"], } ) self.write_initial_balance_from_dict(group_item, report_data)