[IMP] avoid potential error when specifying duplicated fields in read

Can't reproduce on my browser/machine, may be config-specific, but doesn't really hurt either way

bzr revid: xmo@openerp.com-20120831103255-2l4f2zhngl0c0k82
This commit is contained in:
Xavier Morel
2012-08-31 12:32:55 +02:00
parent aac3010c78
commit 7ce7785118
+1 -1
View File
@@ -70,7 +70,7 @@ openerp.web_graph.GraphView = openerp.web.View.extend({
if (this.group_field) {
fs.push(this.group_field);
}
return fs;
return _.uniq(fs);
},
on_loaded: function() {
this.chart = this.fields_view.arch.attrs.type || 'pie';