[IMP] improve code

bzr revid: jap@tinyerp.com-20130503053337-9vmq3t903dwwcjkt
This commit is contained in:
Jagdish Panchal 2013-05-03 11:03:37 +05:30
parent 5126a05c4a
commit 6644af8c88
1 changed files with 1 additions and 1 deletions

View File

@ -987,7 +987,7 @@ class mrp_production(osv.osv):
shipment_id = self._make_production_internal_shipment(cr, uid, production, context=context)
produce_move_id = self._make_production_produce_line(cr, uid, production, context=context)
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:
wf_service.trg_validate(uid, 'mrp.production', shipment_id, 'button_confirm', cr)
# Take routing location as a Source Location.
source_location_id = production.location_src_id.id