[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 c177e74344
commit f343ccfa3c
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "account_reconciliation_widget",
"version": "15.0.1.1.2",
"version": "15.0.1.1.3",
"category": "Accounting",
"license": "AGPL-3",
"summary": "Account reconciliation widget",

View File

@@ -791,11 +791,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])