[FIX] account_reconciliation_widget: Don't suggest non posted moves

Fixes #429
This commit is contained in:
Pedro M. Baeza
2022-04-14 17:07:13 +02:00
parent 2735b99214
commit 9f85c3dc4f
2 changed files with 3 additions and 1 deletions

View File

@@ -790,11 +790,13 @@ class AccountReconciliation(models.AbstractModel):
)
# default domain matching
domain_matching = [
"&",
"&",
"&",
("reconciled", "=", False),
("account_id.reconcile", "=", True),
("balance", "!=", 0.0),
("parent_state", "=", "posted"),
]
domain = expression.OR([domain_reconciliation, domain_matching])