[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 029100c4ae
commit f86c137e1e

View File

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