diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-03-16 13:55:42 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-03-18 10:44:52 +0100 |
| commit | 6c57935443d2abd4e3c7507cf4f3093719fb1c2f (patch) | |
| tree | 88971120ba2505ac90cc8428d57312742e2313bd /addons/web/static/src/js/views/search_inputs.js | |
| parent | bda451ab31c19c52eb72c16eae2471d39860a8d3 (diff) | |
[IMP] openerp,web: cache of actions, fields(_views) and filters
Introduction of 'data_manager' service which handles meta-data related to
actions and views (fields_views, fields and filters). Ideally, all RPCs to
get that kind of information should go through data_manager, as it holds an
internal cache.
Diffstat (limited to 'addons/web/static/src/js/views/search_inputs.js')
| -rw-r--r-- | addons/web/static/src/js/views/search_inputs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/search_inputs.js b/addons/web/static/src/js/views/search_inputs.js index 9d08a537e9d..44b79999259 100644 --- a/addons/web/static/src/js/views/search_inputs.js +++ b/addons/web/static/src/js/views/search_inputs.js @@ -68,7 +68,9 @@ var Input = Widget.extend( /** @lends instance.web.search.Input# */{ "get_domain not implemented for widget " + this.attrs.type); }, load_attrs: function (attrs) { - attrs.modifiers = attrs.modifiers ? JSON.parse(attrs.modifiers) : {}; + if (!_.isObject(attrs.modifiers)) { + attrs.modifiers = attrs.modifiers ? JSON.parse(attrs.modifiers) : {}; + } this.attrs = attrs; }, /** |
