[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:
Nicolas Martinelli 2015-05-13 10:46:52 +02:00
parent f4a9afdd31
commit 60df5548ef
1 changed files with 0 additions and 1 deletions

View File

@ -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)