diff options
| author | Vidhin Mehta <vme@tinyerp.com> | 2013-01-25 12:32:40 +0530 |
|---|---|---|
| committer | Vidhin Mehta <vme@tinyerp.com> | 2013-01-25 12:32:40 +0530 |
| commit | 9c6a184fb5aa77561655ae1ea21d34b6ecb8aa5e (patch) | |
| tree | b7675ca422f9ccd9ca8eb38de1d3ebd9a5c5c7cd /addons/web_graph | |
| parent | 1558bb732d6a61b8b85ef45cacb88a0c8ac76f19 (diff) | |
[FIX]graph view usability bug.
bzr revid: vme@tinyerp.com-20130125070240-0drtmiyetwu2btc6
Diffstat (limited to 'addons/web_graph')
| -rw-r--r-- | addons/web_graph/static/src/js/graph.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 35ad0aaaea8..28e1cf65f12 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -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; }); |
