diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-12-05 16:31:18 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-12-05 16:31:18 +0100 |
| commit | d39e30130b8df4bc26f26fd9bf33d83fba0963be (patch) | |
| tree | ae2487ba5999e4c5dd65f3d7098dca4ac8bf00c2 | |
| parent | a2486bf3c78501f404a4f841f302784d60938efc (diff) | |
[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
| -rw-r--r-- | addons/mrp/mrp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 356a762c0c5..ee5029388dc 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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' |
