diff options
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/search.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 1c6ec449e8f..312432d1960 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -1615,7 +1615,10 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({ } }) .on('reset', this.proxy('clear_selection')); - if (!this.action_id) return $.when(); + if (!this.action_id) { + this.prepare_dropdown_menu([]); + return $.when(); + } return this.model.call('get_filters', [this.target_model, this.action_id]) .done(this.proxy('prepare_dropdown_menu')); }, |
