diff options
| author | Géry Debongnie <ged@odoo.com> | 2014-11-24 11:35:13 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2014-11-24 15:26:07 +0100 |
| commit | 3b131ea64bca878f3844366c63220d66a7be579f (patch) | |
| tree | ff6daf39fbf30c932bcd6fa83150790245aefb62 /addons/web/static/src/js | |
| parent | 6dcad6d0ec48d5c7e1e4cfee9c94e3bddbc1ba5c (diff) | |
[FIX] fix debug mode: correct id and xml_id (web client)
This commit fixes two issues with debug mode:
* when a default searchview is requested, it is
initialized without its view_id. Problem is that it prevents debug mode from editing the view.
* add xml_id in Edit action form view(debug mode) : this makes the xml id visible in form view
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/search.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 2859c30b3e5..148f46677f5 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -415,6 +415,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea view_loaded: function (r) { var self = this; this.fields_view_get = r; + this.view_id = this.view_id || r.view_id; this.prepare_search_inputs(); if (this.$buttons) { |
