summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-11-28 14:01:46 +0100
committerGery Debongnie <ged@openerp.com>2013-11-28 14:01:46 +0100
commitd41ca29475074bfccf79d9206019913e0c16f5ff (patch)
tree569a91203e21263398de1f74e565f5f208b9113e /addons/web_graph/static/src/js/graph.js
parent2ff2fc4c9e55934ff2caf010816849165d32eb5d (diff)
[IMP] adds some rudimentary support to the integration of search bar groupby into the graph view (addon web_graph)
bzr revid: ged@openerp.com-20131128130146-33i0ydw9gbjqgc0v
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index 689cccaab14..94c5a4011f9 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -180,7 +180,11 @@ instance.web_graph.GraphView = instance.web.View.extend({
do_search: function (domain, context, group_by) {
this.pivot_table.domain = domain;
- this.pivot_table.update_values().done(this.proxy('display_data'));
+ if (group_by.length > 0) {
+ this.pivot_table.set_row_groupby(group_by).done(this.proxy('display_data'));
+ } else {
+ this.pivot_table.update_values().done(this.proxy('display_data'));
+ }
},
do_show: function () {