[FIX] payment: fix error management in payment form

PURPOSE

Test frontend and UI tools of eLearning.

SPECIFICATIONS

Recent commit 5193f0d010 introduced a tool method to parse errors and ease
their management. A variable typo was done by mistake, fixed in this commit.

LINKS

Task ID 1937768

closes odoo/odoo#36085

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Thibault Delavallée
2019-08-26 13:33:26 +00:00
parent bee50c4284
commit cab25b690c
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -252,7 +252,7 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
self.displayError(
_t('Server Error'),
_t("We are not able to add your payment method at the moment.") +
this._parseError(error)
self._parseError(error)
);
});
}
@@ -302,7 +302,7 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
self.displayError(
_t('Server Error'),
_t("We are not able to redirect you to the payment form. ") +
this._parseError(error)
self._parseError(error)
);
});
}
@@ -434,7 +434,7 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
self.displayError(
_t('Server error'),
_t("We are not able to add your payment method at the moment.</p>") +
this._parseError(error)
self._parseError(error)
);
});
}
@@ -78,7 +78,7 @@ PaymentForm.include({
self.displayError(
_t('Server Error'),
_t("We are not able to add your payment method at the moment.") +
this._parseError(error)
self._parseError(error)
);
});
};
@@ -84,7 +84,7 @@ PaymentForm.include({
self.displayError(
_t('Unable to save card'),
_t("We are not able to add your payment method at the moment. ") +
this._parseError(error)
self._parseError(error)
);
});
},