[FIX] account_financial_report: Fix log warning GeneralLedger Report

Fixed warning seen in logs while generating General Ledger Report
due to unsupported operand type.
This commit is contained in:
anusrinps96
2025-07-24 16:06:34 +02:00
parent d983fa11d2
commit 615557661d

View File

@@ -857,7 +857,7 @@ class GeneralLedgerReport(models.AbstractModel):
continue
if (
not gl_item["currency_id"]
or gl_item["currency_id"] != company.currency_id
or gl_item["currency_id"] != company.currency_id.id
):
gl_item["fin_bal"]["bal_curr"] -= gl_item["init_bal"]["bal_curr"]
gl_item["init_bal"]["bal_curr"] = 0