[FIX]Fixed code for showing pie chart.

lp bug: https://launchpad.net/bugs/906783 fixed

bzr revid: kch@tinyerp.com-20111220094204-4qihd3jnxyeggkl4
This commit is contained in:
Kunal Chavda (OpenERP) 2011-12-20 15:12:04 +05:30
parent fa15b2adb9
commit 7d0bc5e163
1 changed files with 1 additions and 1 deletions

View File

@ -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);