Ensure to create only once clearing move

issue11388
review354911002
This commit is contained in:
Cédric Krier committed 2022-04-16 11:31:51 +02:00
1 parent c8e2b36231
commit 1ccd516910
1 file changed
+2 -2
+2 -2
View File
@@ -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):