[REV] usage of m2m listview for o2m

Turns out to break way more than it fixes.
This commit is contained in:
Xavier Morel 2016-04-05 11:32:59 +02:00
parent cc60504bff
commit ceb87b78f0
1 changed files with 1 additions and 1 deletions

View File

@ -1100,7 +1100,7 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
record.set(column.id, names[0]);
});
}
} else if (column.type === 'many2many' || column.type === 'one2many') {
} else if (column.type === 'many2many') {
value = record.get(column.id);
// non-resolved (string) m2m values are arrays
if (value instanceof Array && !_.isEmpty(value)