[IMP] improve code
bzr revid: jap@tinyerp.com-20130503053337-9vmq3t903dwwcjkt
This commit is contained in:
parent
5126a05c4a
commit
6644af8c88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue