Set a default value when calculating clearing reconcile of a payment group
Closes #14301 (grafted from 91174ccc69295c1735dad93d720e078ceff91e51) --HG-- branch : 7.0
This commit is contained in:
1 parent
22d237710e
commit
d3c85a8ea8
1 file changed
+1
-1
@@ -395,7 +395,7 @@ class Group(metaclass=PoolMeta):
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user