From cdb7c6603edb81b3da8136bd33bf6b8dc1e5905b Mon Sep 17 00:00:00 2001 From: Jagdish Panchal Date: Fri, 3 May 2013 11:09:48 +0530 Subject: [PATCH] [IMP] bit improve code for yml test bzr revid: jap@tinyerp.com-20130503053948-3hdhmh5vljw43uuh --- addons/mrp/mrp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 31a86fadf0d..0e0feb2f38c 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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