diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 5fbbc5ea18a..d0a669590e2 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -34,9 +34,6 @@ from tools.translate import _ # capacity_hour : capacity per hour. default: 1.0. # Eg: If 5 concurrent operations at one time: capacity = 5 (because 5 employees) # unit_per_cycle : how many units are produced for one cycle -# -# TODO: Work Center may be recursive ? -# class stock_move(osv.osv): _inherit = 'stock.move' diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index 9c244496d3b..248234d8952 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -493,7 +493,6 @@ class mrp_repair(osv.osv): 'state': 'done', }) repair_line_obj.write(cr, uid, [move.id], {'move_id': move_id}) - if repair.deliver_bool: pick_name = seq_obj.get(cr, uid, 'stock.picking.out') picking = pick_obj.create(cr, uid, { @@ -506,8 +505,6 @@ class mrp_repair(osv.osv): 'invoice_state': 'none', 'type': 'out', }) - wf_service.trg_validate(uid, 'stock.picking', picking, 'button_confirm', cr) - move_id = move_obj.create(cr, uid, { 'name': repair.name, 'picking_id': picking, @@ -521,6 +518,7 @@ class mrp_repair(osv.osv): 'tracking_id': False, 'state': 'assigned', }) + wf_service.trg_validate(uid, 'stock.picking', picking, 'button_confirm', cr) self.write(cr, uid, [repair.id], {'state': 'done', 'picking_id': picking}) res[repair.id] = picking else: