From 181e2bdbdec115bbee15afba1d33542dbdad103a Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Mon, 6 Nov 2023 15:05:14 +0100 Subject: [PATCH] [FIX] payment_(adyen,authorize,stripe): unique key for inline form values closes odoo/odoo#140711 Signed-off-by: Antoine Vandevenne (anv) --- addons/payment_adyen/static/src/js/payment_form.js | 3 +-- addons/payment_adyen/views/payment_form_templates.xml | 2 +- addons/payment_authorize/static/src/js/payment_form.js | 4 +++- .../payment_authorize/views/payment_authorize_templates.xml | 2 +- addons/payment_stripe/static/src/js/payment_form.js | 4 +++- addons/payment_stripe/views/payment_stripe_templates.xml | 4 +++- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/addons/payment_adyen/static/src/js/payment_form.js b/addons/payment_adyen/static/src/js/payment_form.js index 58f11d3c354..0721c14c661 100644 --- a/addons/payment_adyen/static/src/js/payment_form.js +++ b/addons/payment_adyen/static/src/js/payment_form.js @@ -47,8 +47,7 @@ paymentForm.include({ // Extract and deserialize the inline form values. const radio = document.querySelector('input[name="o_payment_radio"]:checked'); - const inlineFormValues = JSON.parse(radio.dataset['inlineFormValues']); - const formatted_amount = inlineFormValues['formatted_amount']; + const inlineFormValues = JSON.parse(radio.dataset['adyenInlineFormValues']); const formattedAmount = inlineFormValues['formatted_amount']; // Create the checkout object if not already done for another payment method. diff --git a/addons/payment_adyen/views/payment_form_templates.xml b/addons/payment_adyen/views/payment_form_templates.xml index 474e8af59c2..6c1e6811256 100644 --- a/addons/payment_adyen/views/payment_form_templates.xml +++ b/addons/payment_adyen/views/payment_form_templates.xml @@ -18,7 +18,7 @@