From 2172a6e81c183834be2efee124752f2e8ea16ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 30 May 2016 10:34:31 +0200 Subject: [PATCH] [FIX] web: incorrect reference to openerp I assume the problem was introduced by a forward port. But whatever the case, we should not ever use the variable 'openerp' in jsland. --- addons/web/static/src/js/views/graph_widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views/graph_widget.js b/addons/web/static/src/js/views/graph_widget.js index e2c92535b23..ed528768329 100644 --- a/addons/web/static/src/js/views/graph_widget.js +++ b/addons/web/static/src/js/views/graph_widget.js @@ -305,7 +305,7 @@ return Widget.extend({ }); chart.xAxis.tickValues(tickValues) .tickFormat(tickFormat); - chart.yAxis.tickFormat(function(d) { return openerp.web.format_value(d, { type : 'float' });}); + chart.yAxis.tickFormat(function(d) { return formats.format_value(d, { type : 'float' });}); chart(svg); this.to_remove = chart.update;