details: https://code.tryton.org/tryton/commit/4b70d47b6421
branch: 7.6
user: Cédric Krier <[email protected]>
date: Sun Nov 02 16:53:22 2025 +0100
description:
Set a default value when calculating clearing reconcile of a payment
group
Closes #14301
(grafted from 91174ccc69295c1735dad93d720e078ceff91e51)
diffstat:
modules/account_payment_clearing/payment.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a4833628df6a -r 4b70d47b6421 modules/account_payment_clearing/payment.py
--- a/modules/account_payment_clearing/payment.py Fri Oct 31 18:04:31
2025 +0100
+++ b/modules/account_payment_clearing/payment.py Sun Nov 02 16:53:22
2025 +0100
@@ -397,7 +397,7 @@
Payment = pool.get('account.payment')
payment = Payment.__table__()
cursor = Transaction().connection.cursor()
- result = defaultdict()
+ result = defaultdict(lambda: None)
column = Coalesce(payment.clearing_reconciled, False)
if backend.name == 'sqlite':
column = Min(column)