From c4786fccfd23360a02e442c48ae2fb9f1e70aa4c Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Fri, 12 Jun 2020 09:01:44 +0000 Subject: [IMP] *: update notifications to optional title closes odoo/odoo#52826 Related: odoo/enterprise#11084 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/js/control_panel/custom_favorite_item.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'addons/web/static/src/js/control_panel') diff --git a/addons/web/static/src/js/control_panel/custom_favorite_item.js b/addons/web/static/src/js/control_panel/custom_favorite_item.js index 75eefe9cc2f..b7b3a34ef81 100644 --- a/addons/web/static/src/js/control_panel/custom_favorite_item.js +++ b/addons/web/static/src/js/control_panel/custom_favorite_item.js @@ -60,7 +60,6 @@ odoo.define('web.CustomFavoriteItem', function (require) { _saveFavorite() { if (!this.state.description.length) { this.env.services.notification.notify({ - title: this.env._t("Error"), message: this.env._t("A name for your favorite filter is required."), type: 'danger', }); @@ -69,7 +68,6 @@ odoo.define('web.CustomFavoriteItem', function (require) { const favorites = this.model.getFiltersOfType('favorite'); if (favorites.some(f => f.description === this.state.description)) { this.env.services.notification.notify({ - title: this.env._t("Error"), message: this.env._t("Filter with same name already exists."), type: 'danger', }); -- cgit v1.2.3