[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:
Antoine Vandevenne (anv)
2022-01-10 08:46:27 +00:00
parent 43e7c32d38
commit 5394f9702b
@@ -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."),