[FIX]Fixed code for key issue in graph.

bzr revid: kch@tinyerp.com-20120216084237-egxidkgqbhjruks4
This commit is contained in:
Kunal Chavda (OpenERP) 2012-02-16 14:12:37 +05:30
parent 2094148de5
commit d51511d93c
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ openerp.web_graph.GraphView = openerp.web.View.extend({
_(records).each(function (record) {
var value = record[self.group_field];
if(value) {
record[self.group_field] = value.toLowerCase().replace(/[\s\/]+/g,'_');
value = value.toLowerCase().replace(/[\s\/]+/g,'_');
}
var key = _.str.sprintf('%s_%s', self.ordinate, value);
r[key] = record[self.ordinate];