Commit 118abfd6 authored by niv-openerp's avatar niv-openerp

[imp] shortcut in case of search_read on just ids, don't go through read

parents 21e8c1fd 4f73d8a3
......@@ -395,6 +395,7 @@ class Model(object):
record_ids = 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 =, fields or [], context or {})
return records
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment