fixed problem with some other bar chart

bzr revid: nicolas.vanhoren@openerp.com-20121023151615-ptv4was339w13li6
This commit is contained in:
niv-openerp 2012-10-23 17:16:15 +02:00
parent 796958fa7c
commit f1e8ad572e
1 changed files with 2 additions and 2 deletions

View File

@ -344,8 +344,8 @@ instance.web_graph.GraphView = instance.web.View.extend({
var defs = [];
_.each(axis, function(x) {
var key = x[xaxis[0]]
defs.push(obj.call("read_group", [domain+[(xaxis[0],'=',_convert_key(xaxis[0], key))], yaxis.concat(xaxis.slice(1, 2)), xaxis.slice(1, 2)],
{context: context}).pipe(function(res) {
defs.push(obj.call("read_group", [new instance.web.CompoundDomain(domain, [[xaxis[0], '=' ,_convert_key(xaxis[0], key)]]),
yaxis.concat(xaxis.slice(1, 2)), xaxis.slice(1, 2)], {context: context}).pipe(function(res) {
return [x, key, res];
}));
});