diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2008-12-03 00:16:49 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2008-12-03 00:16:49 +0100 |
| commit | e8b1fbcda9da5cfd700fb33a422251c4339ebf12 (patch) | |
| tree | e7c2426fa1b99dc0159f80d43d17dfe3177973ce | |
| parent | 0d64f90e16f99acc1bb850f61f4b47dc89bbf26b (diff) | |
bugfix
bzr revid: fp@tinyerp.com-20081202231649-abeq7qz71k907u0i
| -rw-r--r-- | addons/mrp/mrp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 836df8a8cd9..aedd0543805 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -144,6 +144,8 @@ class mrp_bom(osv.osv): result = {} for bom in self.browse(cr, uid, ids, context=context): result[bom.id] = map(lambda x: x.id, bom.bom_lines) + if bom.bom_lines: + continue ok = ((name=='child_complete_ids') and (bom.product_id.supply_method=='produce')) if bom.type=='phantom' or ok: sids = self.pool.get('mrp.bom').search(cr, uid, [('bom_id','=',False),('product_id','=',bom.product_id.id)]) |
