orm: revert e940ece64169da4f, read(<bad-id>) must return empty list!

bzr revid: p_christ@hol.gr-20101123135728-rqoec2b92roln4up
This commit is contained in:
P. Christeas 2010-11-23 15:57:28 +02:00
parent 6e13dcb8a2
commit 962a4cce70
1 changed files with 0 additions and 15 deletions

View File

@ -3055,21 +3055,6 @@ class orm(orm_template):
else:
res = map(lambda x: {'id': x}, ids)
# if not res:
# res = map(lambda x: {'id': x}, ids)
# for record in res:
# for f in fields_to_read:
# field_val = False
# if f in self._columns.keys():
# ftype = self._columns[f]._type
# elif f in self._inherit_fields.keys():
# ftype = self._inherit_fields[f][2]._type
# else:
# continue
# if ftype in ('one2many', 'many2many'):
# field_val = []
# record.update({f:field_val})
for f in fields_pre:
if f == self.CONCURRENCY_CHECK_FIELD:
continue