Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


What is active_id?

on 6/2/14, 7:47 AM 960 views

Purpose and usage? can it be ommited?

Jos De Graeve
On 6/2/14, 12:04 PM


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.



On 6/2/14, 8:20 AM

active_id for example is if you are viewing a sale order of table id (Say 124)then  active_id:124 and active_ids :[124]

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 6/2/14, 7:47 AM
Seen: 960 times
Last updated: 3/16/15, 8:10 AM