[FIX] web: lunch filters

When you clicked on "Search more" to add a product in your lunch order,
the default filter didn't appear because the wizard didn't contain an action id.

Introduced by 5cd78b8
The bug solved by this commit didn't appear without the commit.

opw:643951
This commit is contained in:
Goffin Simon
2015-07-08 08:47:50 +02:00
parent fe92deaa1d
commit 1c1593eae2
-4
View File
@@ -1630,10 +1630,6 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({
}
})
.on('reset', this.proxy('clear_selection'));
if (!this.action_id) {
this.prepare_dropdown_menu([]);
return $.when();
}
return this.model.call('get_filters', [this.target_model, this.action_id],
{context: this.searchview.dataset.context})
.done(this.proxy('prepare_dropdown_menu'));