From 20a8b0e66a86c130f7b005aa9a5efead05eb0014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Tue, 25 Nov 2014 13:11:15 +0100 Subject: [PATCH] [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. --- addons/web/static/src/js/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 82ba081e0de..797bd5de3d6 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -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(