From 7ce77851184fa01d21363a3c603e41b5b46ea24f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 31 Aug 2012 12:32:55 +0200 Subject: [PATCH] [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 --- addons/web_graph/static/src/js/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index b7b6063189f..7396d46af10 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -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';