From 64d0fe411840fb43c96f0252a7ff5e74bd7cdc90 Mon Sep 17 00:00:00 2001 From: jbm-odoo Date: Thu, 5 Dec 2019 09:57:15 +0000 Subject: [PATCH] [IMP] calendar: Avoid having no more filters Before this commit: In calendar view, when you unselect all filters of a category, all events disappear (it's expected), but all filters also disappear. So you can't selectd anything, you must reload the view to unlock the situation. After this commit: When you unselect all filters of a category, all events disappear but the filters stay as before selection (of course the last unselected filter stay unselected). closes odoo/odoo#44031 Taskid: 2146842 Related: odoo/enterprise#7970 Signed-off-by: Yannick Tivisse (yti) --- addons/web/static/src/js/views/calendar/calendar_model.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/web/static/src/js/views/calendar/calendar_model.js b/addons/web/static/src/js/views/calendar/calendar_model.js index 9635fc5ffc4..7ed57ceafa9 100644 --- a/addons/web/static/src/js/views/calendar/calendar_model.js +++ b/addons/web/static/src/js/views/calendar/calendar_model.js @@ -595,10 +595,6 @@ return AbstractModel.extend({ return; } - _.each(filter.filters, function (filter) { - filter.display = !filter.active; - }); - var fs = []; var undefined_fs = []; _.each(events, function (event) {