[FIX]graph view usability bug.

bzr revid: vme@tinyerp.com-20130125070240-0drtmiyetwu2btc6
This commit is contained in:
Vidhin Mehta 2013-01-25 12:32:40 +05:30
parent 1558bb732d
commit 9c6a184fb5
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
openerp.web_graph = function (instance) {
var _lt = instance.web._lt;
var _t = instance.web._t;
// removed ``undefined`` values
var filter_values = function (o) {
@ -365,7 +366,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
}).then(function() {
var res = {
'data': result,
'ticks': _.map(ticks, function(el, key) { return [el, key] })
'ticks': _.map(ticks, function(el, key) { return [el, key || _t("Undefined")] })
};
return res;
});