From 815f0853c899663628987c30d4980f1fbf66f803 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 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 ca2d6eb9ad2..6d98a15f6e9 100644 --- a/addons/payment_stripe/static/src/js/stripe.js +++ b/addons/payment_stripe/static/src/js/stripe.js @@ -42,7 +42,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; }