diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-11-28 14:49:04 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-11-28 14:49:04 +0100 |
| commit | 55bbabaf46cbc50e959192fdb8310a07afe77aef (patch) | |
| tree | ac4ee5bbe0d1b5079d7cba0e5906317bdacde3c8 /addons/web_graph/static/src/js/graph.js | |
| parent | 2a3eb6c336a66fd27721898474b5d12d1e87c72d (diff) | |
[IMP] changes the set_row_groupby method into set_groupby (more generic, works for rows and cols) (addon web_graph)
bzr revid: ged@openerp.com-20131128134904-ubkxdowr29is2o86
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 94c5a4011f9..450a86a470a 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -181,7 +181,8 @@ instance.web_graph.GraphView = instance.web.View.extend({ do_search: function (domain, context, group_by) { this.pivot_table.domain = domain; if (group_by.length > 0) { - this.pivot_table.set_row_groupby(group_by).done(this.proxy('display_data')); + this.pivot_table.set_groupby(this.pivot_table.rows, group_by) + .done(this.proxy('display_data')); } else { this.pivot_table.update_values().done(this.proxy('display_data')); } |
