[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:
parent
a2486bf3c7
commit
d39e30130b
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue