active_id is a key inside the context dictionairy. It is mainly used for "sidebar actions", in earlier versions of openerp these were found in the right sidebar, but now these have moved behind the "more" button in a form or list view.
Normally, active_id is automatically set by the UI. When calling the API, you should behave more or less like the user interface does. The "--log-response" command-line option for the server is very handy to see what the UI is doing.
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: 6/2/14, 7:47 AM|
|Seen: 989 times|
|Last updated: 3/16/15, 8:10 AM|