[FIX] account_financial_report: Fix error when generating reports
Some reports crash if account move line implicated are Sections lines or Notes lines in an invoice
This commit is contained in:
@@ -329,7 +329,11 @@ class GeneralLedgerReport(models.AbstractModel):
|
||||
analytic_tag_ids,
|
||||
cost_center_ids,
|
||||
):
|
||||
domain = [("date", ">=", date_from), ("date", "<=", date_to)]
|
||||
domain = [
|
||||
("display_type", "=", False),
|
||||
("date", ">=", date_from),
|
||||
("date", "<=", date_to),
|
||||
]
|
||||
if account_ids:
|
||||
domain += [("account_id", "in", account_ids)]
|
||||
if company_id:
|
||||
|
||||
Reference in New Issue
Block a user