diff options
| author | Christophe Simonis <chs@openerp.com> | 2014-03-20 14:10:14 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2014-03-20 14:10:14 +0100 |
| commit | 03c31de4dd4e4f25fa121f97cb0d1173223f1e97 (patch) | |
| tree | 26dbdb0340f2e36ca6eacbdfad7ce8941552ce86 | |
| parent | acb010a9852755668bbe3f2419ae5038683f4a93 (diff) | |
[FIX] web: when filtering out context, also strip *_view_ref keys
bzr revid: chs@openerp.com-20140320131014-3v5qfjxq9unqu5fs
| -rw-r--r-- | addons/web/static/src/js/views.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 2ec06bb11a7..2db515f7dd6 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -1365,7 +1365,7 @@ instance.web.View = instance.web.Widget.extend({ // Wrong group_by values will simply fail and forbid rendering of the destination view var ncontext = new instance.web.CompoundContext( _.object(_.reject(_.pairs(dataset.get_context().eval()), function(pair) { - return pair[0].match('^(?:(?:default_|search_default_).+|group_by|group_by_no_leaf|active_id|active_ids)$') !== null; + return pair[0].match('^(?:(?:default_|search_default_).+|.+_view_ref|group_by|group_by_no_leaf|active_id|active_ids)$') !== null; })) ); ncontext.add(action_data.context || {}); |
