From 99e785b0d3f4a67db3a72d6d96c17b96cdd27c0c Mon Sep 17 00:00:00 2001 From: Valentin Chevalier Date: Wed, 21 Apr 2021 10:21:57 +0000 Subject: [PATCH] [FIX] payment_stripe: load Stripe.js library on the payment form When the payment form is displayed, Stripe.js library isn't loaded, thus preventing the customer to pay online. When the refactor of assets was done, the link to the Stripe library was moved to __manifest__.py. As the link does not end with '.js', the file wasn't loaded anymore. See PR #60632 closes odoo/odoo#69849 X-original-commit: 8535b090a36fe6472c4b3d8211f3be39c7f1c58a Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Valentin Chevalier --- addons/payment_stripe/__manifest__.py | 2 +- .../views/payment_templates.xml | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 addons/payment_stripe/views/payment_templates.xml diff --git a/addons/payment_stripe/__manifest__.py b/addons/payment_stripe/__manifest__.py index ba9ec43151a..24d9ef4d1c6 100644 --- a/addons/payment_stripe/__manifest__.py +++ b/addons/payment_stripe/__manifest__.py @@ -10,6 +10,7 @@ 'depends': ['payment'], 'data': [ 'views/payment_views.xml', + 'views/payment_templates.xml', 'data/payment_acquirer_data.xml', ], 'application': True, @@ -17,7 +18,6 @@ 'uninstall_hook': 'uninstall_hook', 'assets': { 'web.assets_frontend': [ - 'https://js.stripe.com/v3/', 'payment_stripe/static/src/js/payment_form.js', ], } diff --git a/addons/payment_stripe/views/payment_templates.xml b/addons/payment_stripe/views/payment_templates.xml new file mode 100644 index 00000000000..006ae23d5f0 --- /dev/null +++ b/addons/payment_stripe/views/payment_templates.xml @@ -0,0 +1,20 @@ + + + + + + + +