From 1ccd516910b5920d8460f1ec60b371dc4aa8bfb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 16 Apr 2022 11:31:51 +0200 Subject: [PATCH] Ensure to create only once clearing move issue11388 review354911002 --- payment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payment.py b/payment.py index 934fa47ead..10a0fa8cbc 100644 --- a/payment.py +++ b/payment.py @@ -431,10 +431,10 @@ class Payment(metaclass=PoolMeta): and self.sepa_return_reason_code and self.sepa_return_reason_information == '/RTYP/RJCT') - def create_clearing_move(self, date=None): + def _get_clearing_move(self, date=None): if not date: date = Transaction().context.get('date_value') - return super(Payment, self).create_clearing_move(date=date) + return super()._get_clearing_move(date=date) @classmethod def view_attributes(cls):