[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:
parent
fa15b2adb9
commit
7d0bc5e163
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue