Skip to content

Commit

Permalink
Merge PR #1256 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 28, 2024
2 parents 897cde8 + 8c86f9f commit 900db06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion account_financial_report/report/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ def _get_report_values(self, docids, data):
# Set the bal_curr of the initial balance to 0 if it does not correspond
# (reducing the corresponding of the bal_curr of the initial balance).
for gl_item in general_ledger:
if not foreign_currency:
continue
if (
not gl_item["currency_id"]
or gl_item["currency_id"] != company.currency_id
Expand All @@ -874,7 +876,7 @@ def _get_report_values(self, docids, data):
for gl_item in general_ledger:
fin_bal_currency_ids = []
fin_bal_currency_id = gl_item["currency_id"]
if gl_item["currency_id"]:
if gl_item["currency_id"] or not foreign_currency:
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 900db06

Please sign in to comment.