[FIX] web: propagate context for pivot view fields

On the "+" in the pivot views to group by given fields, these field were
not translated in the user choosen language.

closes #8656
opw-649918
This commit is contained in:
Nicolas Lempereur
2015-09-24 10:40:01 +02:00
parent dfdd12e08c
commit 109eb755f2
+1 -1
View File
@@ -63,7 +63,7 @@ instance.web.PivotView = instance.web.View.extend({
var self = this;
this.$table_container = this.$('.o-pivot-table');
var load_fields = this.model.call('fields_get', [])
var load_fields = this.model.call('fields_get', [], {context: this.dataset.get_context()})
.then(this.prepare_fields.bind(this));
return $.when(this._super(), load_fields).then(this.render_buttons.bind(this)).then(function(){