changeset 6e6dabfb679d in modules/account_payment_sepa:default
details: 
https://hg.tryton.org/modules/account_payment_sepa?cmd=changeset&node=6e6dabfb679d
description:
        Convert filter to list to call lock

        issue11537
diffstat:

 payment.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3b3e1664763d -r 6e6dabfb679d payment.py
--- a/payment.py        Mon Jun 20 23:43:27 2022 +0200
+++ b/payment.py        Tue Jun 21 08:31:41 2022 +0200
@@ -211,7 +211,7 @@
         if self.kind == 'receivable':
             payments = list(self.payments)
             mandates = Payment.get_sepa_mandates(payments)
-            Mandate.lock(filter(None, mandates))
+            Mandate.lock(list(filter(None, mandates)))
             sequence_types = {}
             for payment, mandate in zip(payments, mandates):
                 if not mandate:

Reply via email to