From 65a0a97d67e02b5a659838bf54cd2accb892bc89 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Fri, 6 Dec 2013 17:25:49 +0100 Subject: [PATCH] [IMP] usability fix, makes sure that the dropdown menu displayed when expanding a field in graph view has always the same choices (addon web_graph) bzr revid: ged@openerp.com-20131206162549-08aw50z4zdelzxgc --- addons/web_graph/static/src/js/graph.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 8cf0ffd4877..7efc482f2dd 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -179,7 +179,6 @@ instance.web_graph.GraphView = instance.web.View.extend({ } }, - /****************************************************************************** * Event handling methods... ******************************************************************************/ @@ -318,11 +317,11 @@ instance.web_graph.GraphView = instance.web.View.extend({ display_dropdown: function (options) { var self = this, pivot = this.pivot_table, - already_grouped = pivot.rows.groupby.concat(pivot.cols.groupby), - possible_groups = _.difference(self.important_fields, already_grouped), + // already_grouped = pivot.rows.groupby.concat(pivot.cols.groupby), + // possible_groups = _.difference(self.important_fields, already_grouped), dropdown_options = { header_id: options.id, - fields: _.map(possible_groups, function (field) { + fields: _.map(self.important_fields, function (field) { return {id: field, value: self.fields[field].string}; })};