diff options
| author | Kersten Jeremy <jke@openerp.com> | 2014-05-07 17:47:58 +0200 |
|---|---|---|
| committer | Kersten Jeremy <jke@openerp.com> | 2014-05-07 17:47:58 +0200 |
| commit | 13d18d2bdba3d64f5041346f23d85838b4576936 (patch) | |
| tree | 33816433919934a92cb1d5d48e6acf9a4281d634 /addons/web_graph | |
| parent | 1953aa442fb2f6cc4d0e64bbfcc1f9a461f14a02 (diff) | |
[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
Diffstat (limited to 'addons/web_graph')
| -rw-r--r-- | addons/web_graph/static/src/js/graph_widget.js | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |
