[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:
@@ -123,7 +123,11 @@ class TrialBalanceReport(models.AbstractModel):
|
||||
only_posted_moves,
|
||||
show_partner_details,
|
||||
):
|
||||
domain = ["&", ("date", ">=", date_from), ("date", "<=", date_to)]
|
||||
domain = [
|
||||
("display_type", "=", False),
|
||||
("date", ">=", date_from),
|
||||
("date", "<=", date_to),
|
||||
]
|
||||
if company_id:
|
||||
domain += [("company_id", "=", company_id)]
|
||||
if account_ids:
|
||||
|
||||
Reference in New Issue
Block a user