[fix] synch with lib client to correct some bug

bzr revid: nicolas.vanhoren@openerp.com-20111104113232-jwagh7ptou0mfz8e
This commit is contained in:
niv-openerp 2011-11-04 12:32:32 +01:00
parent 6086fef6b7
commit de8306897b
1 changed files with 0 additions and 1 deletions

View File

@ -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