[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
This commit is contained in:
parent
1953aa442f
commit
13d18d2bdb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue