[FIX] web: list_view, context when doing name_get call in m2m was not compute correctly

this is a backport of commit fd56268c6ca4e8a6f94f16de9129bd12be87303f
This commit is contained in:
Cedric Snauwaert 2015-11-26 10:25:15 +01:00
parent 051b2ce539
commit d179a94da6
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
ids = value;
}
new instance.web.Model(column.relation)
.call('name_get', [ids, this.dataset.context]).done(function (names) {
.call('name_get', [ids, this.dataset.get_context()]).done(function (names) {
// FIXME: nth horrible hack in this poor listview
record.set(column.id + '__display',
_(names).pluck(1).join(', '));