From 4870251f0b0b0503b526b367827ac186ae1fbefd Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 13 Jun 2019 13:52:03 +0000 Subject: [PATCH] [FIX] payment: save credit card - Set a payment provider with: 'Save Cards': 'Always' 'Payment Flow': 'Redirection to the acquirer website' - Process an order on the eCommerce The payment token is not saved. The `save_token` value is based on the checkbox which is only added in 'ask' mode: https://github.com/odoo/odoo/blob/4b8f72eb2315e675ca6d5a0d0961272fc024c475/addons/payment/static/src/js/payment_form.js#L162 We hide and pre-check the checkbox in this case. opw-2008441 opw-2008275 closes odoo/odoo#34106 Signed-off-by: Nicolas Martinelli (nim) --- addons/payment/views/payment_templates.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/payment/views/payment_templates.xml b/addons/payment/views/payment_templates.xml index a88943aa4c5..9ad81c1458f 100644 --- a/addons/payment/views/payment_templates.xml +++ b/addons/payment/views/payment_templates.xml @@ -87,6 +87,9 @@ Save my payment data + + +