diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index a56d0692819..f7ed1675487 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -490,7 +490,7 @@ class PaymentTransaction(models.Model): # custom create custom_method_name = '%s_create' % acquirer.provider - if hasattr(acquirer, custom_method_name): + if hasattr(self, custom_method_name): values.update(getattr(self, custom_method_name)(values)) # Default value of reference is