[FIX] account_financial_report: filter cancelled journal items

This commit is contained in:
Joan Sisquella
2020-10-21 15:43:30 +02:00
committed by chaule97
parent 31bed0f68f
commit a04f638f23
7 changed files with 44 additions and 13 deletions

View File

@@ -49,6 +49,8 @@ class JournalLedgerReport(models.AbstractModel):
]
if wizard.move_target != "all":
domain += [("state", "=", wizard.move_target)]
else:
domain += [("state", "in", ["posted", "draft"])]
return domain
def _get_moves_order(self, wizard, journal_ids):