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)['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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/5/16, 7:12 PM|
|Seen: 346 times|
|Last updated: 2/6/16, 4:27 AM|