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

This commit is contained in:
Cedric Snauwaert
2015-11-26 09:43:21 +01:00
parent 32c7c31b40
commit fd56268c6c
+1 -1
View File
@@ -1177,7 +1177,7 @@ ListView.List = Class.extend( /** @lends instance.web.ListView.List# */{
ids = value;
}
new 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(', '));