summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-03-12 10:28:24 +0100
committerXavier Morel <xmo@openerp.com>2013-03-12 10:28:24 +0100
commit1899141b38d3f63ffa2383a4e427f2586ef4a285 (patch)
treea4fb8d36ba506a3119727fba1d35e79155874e02 /addons/web/static/src
parentf053d2fb5b7d1a630a8be5ffa7f4f8da6b4592e1 (diff)
[FIX] groupby groups fetching of their ancestor searchview
Implementation of invisibles in search view altered handling of search inputs: their parent may not be the searchview anymore (usually is a instance.web.search.Group). GroupbyGroup assumed parent was view and was actually unused until xmo@openerp.com-20130307124222-1ypzfopbktxmad4z, which exposed the incorrect underlying assumption. Make GroupbyGroup access its view when it wants its view, not its parent. bzr revid: xmo@openerp.com-20130312092824-z7sh4h3ityo4g00v
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index c57f8c43f60..d0dfa9b4bfd 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -1197,7 +1197,7 @@ instance.web.search.GroupbyGroup = instance.web.search.FilterGroup.extend({
category: _t("GroupBy"),
icon: this.icon,
values: values,
- field: this.getParent()._s_groupby
+ field: this.view._s_groupby
};
}
});