[FIX] osv.fields: fromkeys second argument is only evaluated once
bzr revid: olt@tinyerp.com-20100922092349-ab36ynbdzqvexryb
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user