diff --git a/addons/payment/models/account_payment.py b/addons/payment/models/account_payment.py index 8609b6b96c9..d507666f35f 100644 --- a/addons/payment/models/account_payment.py +++ b/addons/payment/models/account_payment.py @@ -41,7 +41,7 @@ class AccountPayment(models.Model): if self.payment_token_id.acquirer_id.auto_confirm == 'authorize': raise ValidationError('This feature is not available for payment acquirers set to the "Authorize" mode.\n' 'Please use a token from another provider than %s.' % self.payment_token_id.acquirer_id.name) - reference = "PAYMENT-%s-%s" % (self.id, datetime.datetime.now().strftime('%y%m%d_%H%M%S')) + reference = "P-%s-%s" % (self.id, datetime.datetime.now().strftime('%y%m%d_%H%M%S')) tx = self.env['payment.transaction'].create({ 'amount': self.amount, 'acquirer_id': self.payment_token_id.acquirer_id.id,