Vidhin Mehta  (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-910821-vme into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #910821 in OpenERP Web: "purchase dashboard chart"
  https://bugs.launchpad.net/openerp-web/+bug/910821

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-910821-vme/+merge/87596

Set correct value for selection field.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-910821-vme/+merge/87596
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-910821-vme.
=== modified file 'addons/web_graph/static/src/js/graph.js'
--- addons/web_graph/static/src/js/graph.js	2012-01-03 16:06:50 +0000
+++ addons/web_graph/static/src/js/graph.js	2012-01-05 11:18:25 +0000
@@ -389,6 +389,11 @@
         // 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];
         }

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to