[FIX] correctly set searchview id (web client)

The issue is that when a default searchview is requested, it is
initialized without its view_id.  Result: debug mode can't edit the
search view.  This commit makes sure that when the field_view_get is
received, the correct view_id is set.
This commit is contained in:
Géry Debongnie 2014-11-25 13:11:15 +01:00
parent cd2a432362
commit 20a8b0e66a
1 changed files with 1 additions and 0 deletions

View File

@ -598,6 +598,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea
search_view_loaded: function(data) {
var self = this;
this.fields_view = data;
this.view_id = this.view_id || data.view_id;
if (data.type !== 'search' ||
data.arch.tag !== 'search') {
throw new Error(_.str.sprintf(