summaryrefslogtreecommitdiff
path: root/addons/payment/static
diff options
context:
space:
mode:
authorNikunj Ladava <nla@odoo.com>2018-07-30 12:03:02 +0530
committerRomainLibert <rli@odoo.com>2018-07-31 17:12:58 +0200
commit1978fc2bd0db7e27d7dac79686ed29262d0a27be (patch)
treebd0c98180d6291a86f1fbdfb933129c038396a75 /addons/payment/static
parent4a99d636158b426eb5066643e278ccd397543614 (diff)
[FIX] payment: forward port of 8be798375eadefb6b66e3065a1af3f5eef9ab78a
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.js8
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 2a0e805891a..c861c8296e8 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