[FIX] account_financial_report: General ledger report print issue when there are multiple analytic accounts on single analytic distribution line.

This commit is contained in:
Bhavesh Heliconia
2025-06-25 16:59:35 +05:30
parent 92a9089d61
commit a0caf0975c
3 changed files with 42 additions and 34 deletions

View File

@@ -484,7 +484,8 @@ class GeneralLedgerReport(models.AbstractModel):
for tax_id in move_line["tax_ids"]:
taxes_ids.add(tax_id)
for analytic_account in move_line["analytic_distribution"] or {}:
analytic_ids.add(int(analytic_account))
for analytic_account_id in analytic_account.split(","):
analytic_ids.add(int(analytic_account_id))
if move_line["full_reconcile_id"]:
rec_id = move_line["full_reconcile_id"][0]
if rec_id not in full_reconcile_ids: