[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
This commit is contained in:
parent
f4a9afdd31
commit
60df5548ef
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue