[FIX] payment: hide toaster notification for token deletion error
Before this commit, a toaster notification would be shown in addition to the dedicated error div in the inline payment form when an exception is raised while trying to archive a payment token. closes odoo/odoo#82420 X-original-commit: ff7368a4d140a5fe7cf995d61847e81c6a7fd65e Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
@@ -94,6 +94,7 @@ odoo.define('payment.manage_form', require => {
|
||||
this._disableButton(false);
|
||||
}
|
||||
}).guardedCatch(error => {
|
||||
error.event.preventDefault();
|
||||
this._displayError(
|
||||
_t("Server Error"),
|
||||
_t("We are not able to delete your payment method."),
|
||||
|
||||
Reference in New Issue
Block a user