summaryrefslogtreecommitdiff
path: root/addons/web_graph
diff options
context:
space:
mode:
authorKunal Chavda (OpenERP) <kch@tinyerp.com>2011-12-20 15:12:04 +0530
committerKunal Chavda (OpenERP) <kch@tinyerp.com>2011-12-20 15:12:04 +0530
commit7d0bc5e163e359badeca8f13a31098db1b44fc97 (patch)
treebb0a6731b5118498a4e6c904fc21b399e86ad0da /addons/web_graph
parentfa15b2adb918169bbf5bfd951e9a7fb2cd77c3d5 (diff)
[FIX]Fixed code for showing pie chart.
lp bug: https://launchpad.net/bugs/906783 fixed bzr revid: kch@tinyerp.com-20111220094204-4qihd3jnxyeggkl4
Diffstat (limited to 'addons/web_graph')
-rw-r--r--addons/web_graph/static/src/js/graph.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index 59f56328ffa..e63eec884cd 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -173,7 +173,7 @@ openerp.web_graph.GraphView = openerp.web.View.extend({
graph_data = _(graph_data).sortBy(function (point) {
return point[self.abscissa] + '[[--]]' + point[self.group_field];
});
- if (this.chart == 'bar' || 'line' || 'area') {
+ if (_.include(['bar','line','area'],this.chart)) {
return this.schedule_bar_line_area(graph_data);
} else if (this.chart == "pie") {
return this.schedule_pie(graph_data);