diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js index 9cf567f5973..17f67969eba 100644 --- a/addons/payment/static/src/js/payment_form.js +++ b/addons/payment/static/src/js/payment_form.js @@ -118,7 +118,10 @@ odoo.define('payment.payment_form', function (require) { self.displayError( _t('Server Error'), - _t("

We are not able to add your payment method at the moment.

") + (core.debug ? data.data.message : '') + _t("

We are not able to add your payment method at the moment.

") + + "

" + + (core.debug ? (data.data.message.replace(/\n/g, "
")): '') + + "

" ); }); } @@ -162,7 +165,10 @@ odoo.define('payment.payment_form', function (require) { }).fail(function (message, data) { self.displayError( _t('Server Error'), - _t("

We are not able to redirect you to the payment form.

") + (core.debug ? data.data.message : '') + _t("

We are not able to redirect you to the payment form.

") + + "

" + + (core.debug ? (data.data.message.replace(/\n/g, "
")): '') + + "

" ); }); } @@ -268,7 +274,10 @@ odoo.define('payment.payment_form', function (require) { self.displayError( _t('Server error'), - _t("

We are not able to add your payment method at the moment.

") + (core.debug ? data.data.message : '') + _t("

We are not able to add your payment method at the moment.

") + + "

" + + (core.debug ? (data.data.message.replace(/\n/g, "
")): '') + + "

" ); }); }