diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-10-28 11:31:33 +0200 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2016-11-03 12:57:58 -0700 |
| commit | c54dbe2a924d70bc57eaebddd9eef37d45ffeb25 (patch) | |
| tree | 758ad7eca185a19f0065d135541cf57674aebbb8 /addons/payment_stripe/static/src | |
| parent | ab609ec4a5e9565763b9a48fe12e02a9fa26f1a0 (diff) | |
[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
Diffstat (limited to 'addons/payment_stripe/static/src')
| -rw-r--r-- | addons/payment_stripe/static/src/js/stripe.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
