summaryrefslogtreecommitdiff
path: root/addons/payment/static
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-12-06 12:02:58 +0100
committerChristophe Simonis <chs@odoo.com>2017-12-06 12:02:58 +0100
commit8ef7af6afe54fbd59051bbbce76daadd6fdb0e86 (patch)
treeb21971e972eacc87e198fbc38b48ac9b70d168fc /addons/payment/static
parent010add290342ae1e2887450a381e0d1f0acd34e5 (diff)
parentf96a797fe6238306ec70d3db013b8a4d348ef181 (diff)
[MERGE] forward port branch 11.0 up to f96a797fe62
Diffstat (limited to 'addons/payment/static')
-rw-r--r--addons/payment/static/src/js/payment_form.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js
index 86e6089df48..c65dc7cce57 100644
--- a/addons/payment/static/src/js/payment_form.js
+++ b/addons/payment/static/src/js/payment_form.js
@@ -119,7 +119,10 @@ odoo.define('payment.payment_form', function (require) {
self.displayError(
_t('Server Error'),
- _t("<p>We are not able to add your payment method at the moment.</p>") + (config.debug ? data.data.message : '')
+ _t("<p>We are not able to add your payment method at the moment.</p>") +
+ "<p>" +
+ (config.debug ? (data.data.message.replace(/\n/g, "<br />")): '') +
+ "</p>"
);
});
}
@@ -163,7 +166,10 @@ odoo.define('payment.payment_form', function (require) {
}).fail(function (message, data) {
self.displayError(
_t('Server Error'),
- _t("<p>We are not able to redirect you to the payment form.</p>") + (config.debug ? data.data.message : '')
+ _t("<p>We are not able to redirect you to the payment form.</p>") +
+ "<p>" +
+ (config.debug ? (data.data.message.replace(/\n/g, "<br />")): '') +
+ "</p>"
);
});
}
@@ -269,7 +275,10 @@ odoo.define('payment.payment_form', function (require) {
self.displayError(
_t('Server error'),
- _t("<p>We are not able to add your payment method at the moment.</p>") + (config.debug ? data.data.message : '')
+ _t("<p>We are not able to add your payment method at the moment.</p>") +
+ "<p>" +
+ (config.debug ? (data.data.message.replace(/\n/g, "<br />")): '') +
+ "</p>"
);
});
}
@@ -411,5 +420,5 @@ odoo.define('payment.payment_form', function (require) {
form.attachTo($elem);
});
-
+ return PaymentForm;
});