orm: revert e940ece64169da4f, read(<bad-id>) must return empty list!
bzr revid: p_christ@hol.gr-20101123135728-rqoec2b92roln4up
This commit is contained in:
parent
6e13dcb8a2
commit
962a4cce70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue