[REVERT] Reverted above fix , defaultdict seems faulty
bzr revid: jvo@tinyerp.com-20101013132833-1ogy3q3ci5zy6bh4
This commit is contained in:
parent
b77cad685a
commit
092c4dff88
|
@ -457,8 +457,8 @@ class one2many(_column):
|
|||
|
||||
ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
|
||||
for r in obj.pool.get(self._obj)._read_flat(cr, user, ids2, [self._fields_id], context=context, load='_classic_write'):
|
||||
if r[self._fields_id] in res:
|
||||
res[r[self._fields_id]].append(r['id'])
|
||||
# if r[self._fields_id] in res.values():
|
||||
res[r[self._fields_id]].append(r['id'])
|
||||
return res
|
||||
|
||||
def set(self, cr, obj, id, field, values, user=None, context=None):
|
||||
|
|
Loading…
Reference in New Issue