Commit 4f73d8a3 authored by Xavier Morel's avatar Xavier Morel

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

parent 4c94fc30
......@@ -394,6 +394,7 @@ class Model(object):
:return: A list of dictionaries containing all the specified fields.
record_ids = or [], offset, limit or False, order or False, context or {})
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