From c54dbe2a924d70bc57eaebddd9eef37d45ffeb25 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 28 Oct 2016 11:31:33 +0200 Subject: [PATCH] [FIX] payment_stripe: select correct div when web quote ! This is a backport from 10.0 (815f085) ! opw-693017 Original commit message: When a user tries to pay a website quote thanks to Stripe, the button spins and nothing happens. In the case of a quote, the jQuery selector is not correct. opw-692341 --- addons/payment_stripe/static/src/js/stripe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment_stripe/static/src/js/stripe.js b/addons/payment_stripe/static/src/js/stripe.js index eba83aa3d00..314fc764add 100644 --- a/addons/payment_stripe/static/src/js/stripe.js +++ b/addons/payment_stripe/static/src/js/stripe.js @@ -41,7 +41,7 @@ odoo.define('payment_stripe.stripe', function(require) { $(this).attr('disabled','disabled'); var $form = $(e.currentTarget).parents('form'); - var acquirer_id = $(e.currentTarget).parents('div.oe_sale_acquirer_button').first().data('id'); + var acquirer_id = $(e.currentTarget).closest('div.oe_sale_acquirer_button,div.oe_quote_acquirer_button').data('id'); if (! acquirer_id) { return false; }