changeset 87cea3ad3077 in modules/account_payment_sepa:6.4 details: https://hg.tryton.org/modules/account_payment_sepa?cmd=changeset&node=87cea3ad3077 description: Filter out empty mandates before lock
issue11537 review419251003 (grafted from 3b3e1664763dbfb124106e2907acd6130d43ff89) diffstat: payment.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 7a2132322d4f -r 87cea3ad3077 payment.py --- a/payment.py Mon May 02 17:33:19 2022 +0200 +++ b/payment.py Mon Jun 20 23:43:27 2022 +0200 @@ -211,7 +211,7 @@ if self.kind == 'receivable': payments = list(self.payments) mandates = Payment.get_sepa_mandates(payments) - Mandate.lock(mandates) + Mandate.lock(filter(None, mandates)) sequence_types = {} for payment, mandate in zip(payments, mandates): if not mandate: