details: https://code.tryton.org/tryton/commit/4f9c0d84b816
branch: default
user: Cédric Krier <[email protected]>
date: Mon Jan 05 00:38:37 2026 +0100
description:
Do not return None as party to reconcile
Closes #14438
diffstat:
modules/account/move.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 0a52eb4a6a12 -r 4f9c0d84b816 modules/account/move.py
--- a/modules/account/move.py Mon Jan 05 11:52:11 2026 +0100
+++ b/modules/account/move.py Mon Jan 05 00:38:37 2026 +0100
@@ -2271,7 +2271,9 @@
if self.model and self.model.__name__ == 'account.move.line':
lines = [l for l in self.records if not l.reconciliation]
- return list({l.party for l in lines if l.account == account})
+ return list({
+ l.party for l in lines
+ if l.account == account and l.party})
where = ((line.reconciliation == Null)
& (line.state == 'valid')