summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorMathieu Duckerts-Antoine <dam@odoo.com>2019-07-09 09:40:09 +0000
committerMathieu Duckerts-Antoine <dam@odoo.com>2019-07-31 12:35:48 +0000
commit1631c9dbc92b258b8cee5d0aafbd5bdb1d5ee1df (patch)
tree2204dff13df5a188e149f72230d937eaa172b0df /addons/web/static/src
parentcfe2ee93414914d41d97f5406c8d2c5daa36cc64 (diff)
[FIX] web: date filter options unselected after facet deletion
Select the option 'This Month' of a date filter in the filter menu and then remove the facet created correctly toggles the filter from the query but the option is still shown as selected. This commit fixes that situation. closes odoo/odoo#35340 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/control_panel/control_panel_model.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/control_panel/control_panel_model.js b/addons/web/static/src/js/views/control_panel/control_panel_model.js
index f2e28858ba3..0229daa41ee 100644
--- a/addons/web/static/src/js/views/control_panel/control_panel_model.js
+++ b/addons/web/static/src/js/views/control_panel/control_panel_model.js
@@ -157,6 +157,9 @@ var ControlPanelModel = mvc.Model.extend({
if (filter.autoCompleteValues) {
filter.autoCompleteValues = [];
}
+ if (filter.currentOptionId) {
+ filter.currentOptionId = false;
+ }
});
// TODO: use toggleFilter here
group.activeFilterIds = [];