From 13d18d2bdba3d64f5041346f23d85838b4576936 Mon Sep 17 00:00:00 2001 From: Kersten Jeremy Date: Wed, 7 May 2014 17:47:58 +0200 Subject: [PATCH] [FIX] Graph - Add context in fields_get to have the right translation in col_header and other places where terms was not translate. lp bug: https://launchpad.net/bugs/1317079 fixed bzr revid: jke@openerp.com-20140507154758-0vkq9rywjyl55f5w --- addons/web_graph/static/src/js/graph_widget.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js index 78fa7ceff22..bf6df084fbc 100644 --- a/addons/web_graph/static/src/js/graph_widget.js +++ b/addons/web_graph/static/src/js/graph_widget.js @@ -42,7 +42,9 @@ openerp.web_graph.Graph = openerp.web.Widget.extend({ this.$('.graph_main_content').addClass('graph_pivot_mode'); } - return this.model.call('fields_get', []).then(function (f) { + return this.model.call('fields_get', { + context: self.graph_view.dataset.context + }).then(function (f) { self.fields = f; self.fields.__count = {field:'__count', type: 'integer', string:_t('Quantity')}; self.important_fields = self.get_search_fields();