[FIX] account_reconciliation_widget: Hide own reconcilable items

If the journal destination account is reconcilable, as the journal entry
is pre-generated before reconciling, the line is appearing in the
reconciliation widget, provoking user confusion and error if that one
is selected.

We explicitly exclude in the matching domain for avoiding the problem.

TT42983
This commit is contained in:
Pedro M. Baeza
2023-05-31 16:52:02 +02:00
parent c4e5029103
commit 5c54688faf

View File

@@ -798,6 +798,8 @@ class AccountReconciliation(models.AbstractModel):
"&", "&",
"&", "&",
"&", "&",
"&",
("id", "not in", st_line.move_id.line_ids.ids),
("reconciled", "=", False), ("reconciled", "=", False),
("account_id.reconcile", "=", True), ("account_id.reconcile", "=", True),
("balance", "!=", 0.0), ("balance", "!=", 0.0),