[FIX] correctly pass context to graph's fields_view_get

bzr revid: xmo@openerp.com-20130301102555-1g7p8ugyorle7i0j
This commit is contained in:
Xavier Morel 2013-03-01 11:25:55 +01:00
commit b0b1357f16
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
var result = [];
var ticks = {};
return this.alive(obj.call("fields_view_get", [view_id, 'graph']).then(function(tmp) {
return this.alive(obj.call("fields_view_get", [view_id, 'graph', context]).then(function(tmp) {
view_get = tmp;
fields = view_get['fields'];
var toload = _.select(group_by, function(x) { return fields[x] === undefined });