changeset 8814ed56f0bb in modules/account_payment_sepa:6.2 details: https://hg.tryton.org/modules/account_payment_sepa?cmd=changeset&node=8814ed56f0bb 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 664715ed94f7 -r 8814ed56f0bb payment.py --- a/payment.py Fri Dec 03 21:54:30 2021 +0100 +++ b/payment.py Mon Jun 20 23:43:27 2022 +0200 @@ -214,7 +214,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: