diff options
| author | Nikunj Ladava <nla@odoo.com> | 2018-07-30 12:03:02 +0530 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2018-07-31 16:45:03 +0200 |
| commit | 8be798375eadefb6b66e3065a1af3f5eef9ab78a (patch) | |
| tree | 12bd0e2d5d322aa5f7198dd5c114bc8b53eb9a63 /addons/payment/static | |
| parent | a719cf256364c35229ac1695e9011870616bcce4 (diff) | |
[FIX] payment: fix rpc.fail in payment form
Parameters of the rpc.fail is changed because of this commit : https://github.com/odoo/odoo/commit/fc5d030ef2695f7d2daeb87db9697240be4b99d4#diff-c52e0c611c3001980c7a7be0f6395e60R80
This commit is related to Task ID: 1869500
Closes #26052
Diffstat (limited to 'addons/payment/static')
| -rw-r--r-- | addons/payment/static/src/js/payment_form.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js index f28a4747a8e..10ddb19ee37 100644 --- a/addons/payment/static/src/js/payment_form.js +++ b/addons/payment/static/src/js/payment_form.js @@ -125,7 +125,7 @@ odoo.define('payment.payment_form', function (require) { $(button).attr('disabled', false); $(button).children('.fa').addClass('fa-plus-circle') $(button).find('span.o_loader').remove(); - }).fail(function (message, data) { + }).fail(function (data, event) { // if the rpc fails, pretty obvious $(button).attr('disabled', false); $(button).children('.fa').addClass('fa-plus-circle') @@ -176,7 +176,7 @@ odoo.define('payment.payment_form', function (require) { _t("We are not able to redirect you to the payment form.") ); } - }).fail(function (message, data) { + }).fail(function (data, event) { self.displayError( _t('Server Error'), _t("We are not able to redirect you to the payment form. ") + @@ -292,7 +292,7 @@ odoo.define('payment.payment_form', function (require) { $(button).attr('disabled', false); $(button).children('.fa').addClass('fa-plus-circle') $(button).find('span.o_loader').remove(); - }).fail(function (message, data) { + }).fail(function (data, event) { // if the rpc fails, pretty obvious $(button).attr('disabled', false); $(button).children('.fa').addClass('fa-plus-circle') @@ -364,7 +364,7 @@ odoo.define('payment.payment_form', function (require) { // if there's no records linked to this payment method, then we delete it tokenDelete(); } - }, function (type, err) { + }, function (err, event) { self.displayError( _t('Server Error'), _t("We are not able to delete your payment method at the moment.") + err.data.message |
