diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 0e0feb2f38c..2c52ca87924 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -775,6 +775,9 @@ class mrp_production(osv.osv): for new_parent_id in new_parent_ids: stock_mov_obj.write(cr, uid, [raw_product.id], {'move_history_ids': [(4,new_parent_id)]}) wf_service = netsvc.LocalService("workflow") + for componant in production.bom_id.bom_lines: + if componant.product_id.type == 'service' and not production.move_lines and not production.move_lines2: + wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce', cr) wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce_done', cr) return True