diff --git a/addons/payment/controllers/portal.py b/addons/payment/controllers/portal.py index 73c3cae4..cd653e79 100644 --- a/addons/payment/controllers/portal.py +++ b/addons/payment/controllers/portal.py @@ -89,6 +89,7 @@ class WebsitePayment(http.Controller): 'amount': float(amount), 'currency_id': currency_id, 'partner_id': partner_id, + 'type': 'form_save' if acquirer.save_token != 'none' and partner_id else 'form', } tx = request.env['payment.transaction'].sudo().create(values) @@ -117,7 +118,8 @@ class WebsitePayment(http.Controller): 'amount': float(amount), 'currency_id': int(currency_id), 'partner_id': partner_id, - 'payment_token_id': pm_id + 'payment_token_id': pm_id, + 'type': 'form_save' if token.acquirer_id.save_token != 'none' and partner_id else 'form', } tx = request.env['payment.transaction'].sudo().create(values) diff --git a/addons/payment/data/payment_acquirer_data.xml b/addons/payment/data/payment_acquirer_data.xml index 1996b333..8d47e1a8 100644 --- a/addons/payment/data/payment_acquirer_data.xml +++ b/addons/payment/data/payment_acquirer_data.xml @@ -3,8 +3,7 @@