[IMP] mrp: generate dict from ids via dict.fromkeys, set 'empty' value to False for selection fields rather than an empty string

bzr revid: xmo@openerp.com-20111205153118-1hmvvhkw77qjh5qb
This commit is contained in:
Xavier Morel 2011-12-05 16:31:18 +01:00
parent a2486bf3c7
commit d39e30130b
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class mrp_bom(osv.osv):
@param arg: User defined argument
@return: Dictionary of values
"""
res = dict(map(lambda x: (x,''), ids))
res = dict.fromkeys(ids, False)
for line in self.browse(cr, uid, ids, context=context):
if line.type == 'phantom' and not line.bom_id:
res[line.id] = 'set'