details:   https://code.tryton.org/tryton/commit/c6eadda2eba3
branch:    7.8
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
        (grafted from 4f9c0d84b8165e529b1e4c7088b9a0e36e1c422f)
diffstat:

 modules/account/move.py |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 7ba0e3d7a8fc -r c6eadda2eba3 modules/account/move.py
--- a/modules/account/move.py   Mon Jan 05 00:41:31 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')

Reply via email to