Skip to content

Commit

Permalink
[FIX] account_financial_report: KeyError rendering report
Browse files Browse the repository at this point in the history
Some reports were failing to render without this fix.

It seems there was a regression introduced in 0a2b273.

@moduon MT-8285
  • Loading branch information
yajo committed Dec 3, 2024
1 parent f92bdc9 commit 1bc702f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions account_financial_report/report/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 866 in account_financial_report/report/general_ledger.py

View check run for this annotation

Codecov / codecov/patch

account_financial_report/report/general_ledger.py#L866

Added line #L866 was not covered by tests
continue
gl_item["fin_bal"]["bal_curr"] = gl_item["init_bal"]["bal_curr"]
if "move_lines" in gl_item:
Expand Down

0 comments on commit 1bc702f

Please sign in to comment.