[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user