[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:
@@ -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)
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user