[FIX] osv.fields: fromkeys second argument is only evaluated once
bzr revid: olt@tinyerp.com-20100922092349-ab36ynbdzqvexryb
This commit is contained in:
parent
68d0f64128
commit
6acee33b4e
|
@ -777,7 +777,7 @@ class related(function):
|
|||
if not ids: return {}
|
||||
relation = obj._name
|
||||
if self._type in ('one2many', 'many2many'):
|
||||
res = {}.fromkeys(ids, [])
|
||||
res = dict([(i, []) for i in ids])
|
||||
else:
|
||||
res = {}.fromkeys(ids, False)
|
||||
|
||||
|
|
Loading…
Reference in New Issue