[FIX]Fixed the issue of graph view, wehre same field were pushed two times in list view, like in graph view code we have created grouping on some field and now again from search view we are making grouping on same field so this field were added two times in list_field and results in no group records.

bzr revid: msh@tinyerp.com-20120528045245-tfq5qwaiwfo7pd26
This commit is contained in:
msh-openerp
2012-05-28 10:22:45 +05:30
parent fc4e1d83ad
commit 08dc983f36
+1 -1
View File
@@ -67,7 +67,7 @@ openerp.web_graph.GraphView = openerp.web.View.extend({
list_fields: function () {
var fs = [this.abscissa];
fs.push.apply(fs, _(this.columns).pluck('name'));
if (this.group_field) {
if (this.group_field && this.group_field != this.abscissa) {
fs.push(this.group_field);
}
return fs;