[FIX] crash in editable list o2m when a record is saved
bzr revid: nicolas.vanhoren@openerp.com-20130227141941-phigsnt3x3rj0atu
This commit is contained in:
parent
06cd1f368c
commit
5c3eebcb4d
|
@ -1059,8 +1059,8 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
|
||||||
// 2. an array of ids
|
// 2. an array of ids
|
||||||
ids = value;
|
ids = value;
|
||||||
}
|
}
|
||||||
self.alive(new instance.web.Model(column.relation)
|
new instance.web.Model(column.relation)
|
||||||
.call('name_get', [ids])).done(function (names) {
|
.call('name_get', [ids]).done(function (names) {
|
||||||
// FIXME: nth horrible hack in this poor listview
|
// FIXME: nth horrible hack in this poor listview
|
||||||
record.set(column.id + '__display',
|
record.set(column.id + '__display',
|
||||||
_(names).pluck(1).join(', '));
|
_(names).pluck(1).join(', '));
|
||||||
|
|
Loading…
Reference in New Issue