[FIX] fields: small python code fix
bzr revid: rco@openerp.com-20140123094646-ri4apn315dm19rl1
This commit is contained in:
parent
d50f785b4f
commit
0fb09d9a33
|
@ -601,7 +601,7 @@ class one2many(_column):
|
|||
domain = self._domain(obj) if callable(self._domain) else self._domain
|
||||
model = obj.pool[self._obj]
|
||||
ids2 = model.search(cr, user, domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
|
||||
if len(ids)<>1:
|
||||
if len(ids) != 1:
|
||||
for r in model._read_flat(cr, user, ids2, [self._fields_id], context=context, load='_classic_write'):
|
||||
if r[self._fields_id] in res:
|
||||
res[r[self._fields_id]].append(r['id'])
|
||||
|
|
Loading…
Reference in New Issue