summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-01-05 14:27:29 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-01-05 14:27:29 +0530
commitf81034403597ce23342b928db1e92866f304f3d4 (patch)
tree439e1bddcd14a45b6acd020d4f77c66e33de215c /addons/web_graph/static/src/js/graph.js
parent05d0ef1c023bc5586ea8fe01644cf4c301465ac4 (diff)
[FIX]check value and selection field.
lp bug: https://launchpad.net/bugs/910821 fixed bzr revid: vme@tinyerp.com-20120105085729-xcl43wdalml8v8f7
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js5
1 files changed, 5 insertions, 0 deletions
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];
}