From 1bc702f00690f3e14c459150b1893b515be9e8c0 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 3 Dec 2024 11:13:50 +0100 Subject: [PATCH] [FIX] account_financial_report: KeyError rendering report Some reports were failing to render without this fix. It seems there was a regression introduced in 0a2b2736cdc1a73d6248b91fa79a0f4c6aedc99b. @moduon MT-8285 --- account_financial_report/report/general_ledger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_financial_report/report/general_ledger.py b/account_financial_report/report/general_ledger.py index 402db208f82..ac2964c28d1 100644 --- a/account_financial_report/report/general_ledger.py +++ b/account_financial_report/report/general_ledger.py @@ -863,6 +863,7 @@ def _get_report_values(self, docids, data): fin_bal_currency_ids = [] fin_bal_currency_id = gl_item["currency_id"] if gl_item["currency_id"] or not foreign_currency: + gl_item["fin_bal_currency_id"] = fin_bal_currency_id continue gl_item["fin_bal"]["bal_curr"] = gl_item["init_bal"]["bal_curr"] if "move_lines" in gl_item: