X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Fweb%2Fstatic%2Fsrc%2Fjs%2Fsearch.js;fp=addons%2Fweb%2Fstatic%2Fsrc%2Fjs%2Fsearch.js;h=312432d19606df9841a23de63c457c8de46f8e5f;hb=851140c7f4a302e8b7f49b4e836a75b7d487c8d3;hp=1c6ec449e8f72ce1830ecd371365d94ff6e2b561;hpb=dc560a4dd0b6c109eede6b30c02ae4b34ca77c38;p=odoo%2Fodoo.git diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 1c6ec44..312432d 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')); },