From f81034403597ce23342b928db1e92866f304f3d4 Mon Sep 17 00:00:00 2001 From: "Vidhin Mehta (OpenERP)" Date: Thu, 5 Jan 2012 14:27:29 +0530 Subject: [PATCH] [FIX]check value and selection field. lp bug: https://launchpad.net/bugs/910821 fixed bzr revid: vme@tinyerp.com-20120105085729-xcl43wdalml8v8f7 --- addons/web_graph/static/src/js/graph.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 30a10eee73a..ccf3b6c3890 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -389,6 +389,11 @@ openerp.web_graph.GraphView = openerp.web.View.extend({ // unconditionally nuke tooltips before switching view $(".dhx_tooltip").remove('div'); id = id[this.abscissa]; + if(this.fields[this.abscissa].type == "selection"){ + id = _.detect(this.fields[this.abscissa].selection,function(select_value){ + return _.include(select_value, id); + }); + } if (typeof id == 'object'){ id = id[0]; }