diff options
| author | jbm-odoo <jbm@odoo.com> | 2019-12-05 09:57:15 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-01-28 10:25:11 +0000 |
| commit | 64d0fe411840fb43c96f0252a7ff5e74bd7cdc90 (patch) | |
| tree | 4ac5d18643ca1dbf5b33334645ee4aa63aca6922 /addons/web/static/src/js/views | |
| parent | b7c5b28b9c021fd747c07d468b885a5d78639102 (diff) | |
[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) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views')
| -rw-r--r-- | addons/web/static/src/js/views/calendar/calendar_model.js | 4 |
1 files changed, 0 insertions, 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) { |
