[IMP] bit improve code for yml test

bzr revid: jap@tinyerp.com-20130503053948-3hdhmh5vljw43uuh
This commit is contained in:
Jagdish Panchal 2013-05-03 11:09:48 +05:30
parent 6644af8c88
commit cdb7c6603e
1 changed files with 1 additions and 1 deletions

View File

@ -838,7 +838,7 @@ class mrp_production(osv.osv):
if not self.action_compute(cr, uid, [production.id]):
res = False
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
return res