Merge lp:~savoirfairelinux-openerp/openerp-web/1279885 into lp:openerp-web/7.0

Status: Needs review
Proposed branch: lp:~savoirfairelinux-openerp/openerp-web/1279885
Merge into: lp:openerp-web/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
addons/web/static/src/js/view_list.js (+1/-1)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-web/1279885
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+206228@code.launchpad.net

Description of the change

Adds context propagation to m2m fields in list views.
Fixes translation issues when viewing a a many2many field in a Tree view.

To post a comment you must log in.

Unmerged revisions

4139. By Sandy Carter (http://www.savoirfairelinux.com)

[FIX] Add context propagation for m2m list view

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/src/js/view_list.js'
2--- addons/web/static/src/js/view_list.js 2014-01-15 11:00:38 +0000
3+++ addons/web/static/src/js/view_list.js 2014-02-13 16:52:48 +0000
4@@ -1060,7 +1060,7 @@
5 ids = value;
6 }
7 new instance.web.Model(column.relation)
8- .call('name_get', [ids]).done(function (names) {
9+ .call('name_get', [ids, this.dataset.context]).done(function (names) {
10 // FIXME: nth horrible hack in this poor listview
11 record.set(column.id + '__display',
12 _(names).pluck(1).join(', '));