[IMP] bit improve code for yml test
bzr revid: jap@tinyerp.com-20130503053948-3hdhmh5vljw43uuh
This commit is contained in:
parent
6644af8c88
commit
cdb7c6603e
|
@ -838,7 +838,7 @@ class mrp_production(osv.osv):
|
||||||
if not self.action_compute(cr, uid, [production.id]):
|
if not self.action_compute(cr, uid, [production.id]):
|
||||||
res = False
|
res = False
|
||||||
for componant in production.bom_id.bom_lines:
|
for componant in production.bom_id.bom_lines:
|
||||||
if componant.product_id.type == 'service' and not production.move_lines or not production.move_lines2:
|
if componant.product_id.type == 'service' and not production.move_lines and not production.move_lines2:
|
||||||
res=False
|
res=False
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue