I suspect that I am using old API in this code block:
Model = request.registry['stock.picking']
cr, uid, context = request.cr, request.uid, request.context
fields = [ 'id' ]
current_stock_picking = Model.read(cr, uid, [int(id)], fields, context)[0]['id']
Which would be the equivalent in API 8?
The code is included in a controller, should I use any decorator for using API 8?