From 321a4a74027364f709a9830faeba4d5a70a814fe Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Mon, 10 Feb 2014 16:32:21 +0100 Subject: [PATCH] [FIX] make sure the graph view takes the col_group_by from the search view and not from the context. It was taken from the context, and had the unfortunate side effect that the user could not ungroup by removing the facet from the search view. (addon web_graph) bzr revid: ged@openerp.com-20140210153221-olkv8xee02r9voer --- addons/web_graph/static/src/js/graph_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_graph/static/src/js/graph_view.js b/addons/web_graph/static/src/js/graph_view.js index 33b99b88bcf..ace2f14ae20 100644 --- a/addons/web_graph/static/src/js/graph_view.js +++ b/addons/web_graph/static/src/js/graph_view.js @@ -83,7 +83,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ } var self = this, - col_group_by = this.extract_groupby('col_group_by', context) || []; + col_group_by = self.get_groupbys_from_searchview('ColGroupBy', 'col_group_by'); if (!this.graph_widget) { if (group_by.length) {