summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-09-22 17:17:43 +0200
committerNicolas Lempereur <nle@odoo.com>2015-09-24 10:40:01 +0200
commit109eb755f288a86ef291dcfc2ffbbbcd4f5932c3 (patch)
treee25ff4b446800e0371bb2e0b0bcf059eb0c234dc /addons/web/static/src
parentdfdd12e08c885407a7e4dc18cb8aced9c5ead33a (diff)
[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
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_pivot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_pivot.js b/addons/web/static/src/js/view_pivot.js
index 0d39661fca8..8dbfb3360e1 100644
--- a/addons/web/static/src/js/view_pivot.js
+++ b/addons/web/static/src/js/view_pivot.js
@@ -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(){