From 60df5548ef816a30aeaa9d810d3597974e7fd40d Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 13 May 2015 10:46:52 +0200 Subject: [PATCH] [FIX] mrp_repair: do not set default state to stock.move when repair is done When the repair is done, the stock moves were created in 'assigned' state, and will therefore not be treated by move_obj.action_done. opw-639676 --- addons/mrp_repair/mrp_repair.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index 41c51397b21..aa4dc961d43 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -473,7 +473,6 @@ class mrp_repair(osv.osv): 'partner_id': repair.address_id and repair.address_id.id or False, 'location_id': move.location_id.id, 'location_dest_id': move.location_dest_id.id, - 'state': 'assigned', }) move_ids.append(move_id) repair_line_obj.write(cr, uid, [move.id], {'move_id': move_id, 'state': 'done'}, context=context)