[fix] synch with lib client to correct some bug
bzr revid: nicolas.vanhoren@openerp.com-20111104113232-jwagh7ptou0mfz8e
This commit is contained in:
parent
6086fef6b7
commit
de8306897b
|
@ -451,7 +451,6 @@ class Model(object):
|
|||
"""
|
||||
record_ids = self.search(domain or [], offset, limit or False, order or False, context or {})
|
||||
if not record_ids: return []
|
||||
if field == ['id']: return [{'id': record_id} for record_id in record_ids]
|
||||
records = self.read(record_ids, fields or [], context or {})
|
||||
return records
|
||||
|
||||
|
|
Loading…
Reference in New Issue