[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
This commit is contained in:
Nicolas Martinelli
2016-10-28 11:31:33 +02:00
parent b9d1239eff
commit 815f0853c8
@@ -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;
}