summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-12-16 12:20:54 +0100
committerXavier Morel <xmo@openerp.com>2011-12-16 12:20:54 +0100
commit265d9e1ef4efebc15d5d04ef412de9f5452296c4 (patch)
tree010ad2c4193999d7663cb2b8cfbc282e9a5969a5 /addons/web_graph/static/src
parentb3a04d317b078a474f8b6df8952cd039beacbde9 (diff)
[ADD] translatable name to views
lp bug: https://launchpad.net/bugs/904989 fixed bzr revid: xmo@openerp.com-20111216112054-xys9q3ap6dcatppr
Diffstat (limited to 'addons/web_graph/static/src')
-rw-r--r--addons/web_graph/static/src/js/graph.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index acab0b73f5e..77e9e952ad2 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -12,9 +12,11 @@ var COLOR_PALETTE = [
'#ad7fa8', '#729fcf', '#8ae234', '#e9b96e', '#fce94f', '#f57900',
'#cc0000', '#d400a8'];
-var QWeb = openerp.web.qweb;
+var QWeb = openerp.web.qweb,
+ _t = openerp.web._t;
openerp.web.views.add('graph', 'openerp.web_graph.GraphView');
openerp.web_graph.GraphView = openerp.web.View.extend({
+ display_name: {toString: function () { return _t('Graph'); }},
init: function(parent, dataset, view_id, options) {
this._super(parent);