Odoo Help


How to kill user session after 30 min user inactivity in Odoo v8?

ITSD Group Uzbekistan
on 4/12/15, 5:26 AM 705 views

How to kill user session after 30 min user inactivity in Odoo v8? Any advice will be appreciated. 

Michael Watchorn
On 3/28/16, 6:27 PM

You can purchase and install the Idle Logout module (10.00 €), or you can modify line 1363 of .../openerp/http.py, which is currently set to 1 week. You will want 60*30 (60 seconds per minute times 30 minutes).

last_week = time.time() - 60*30

Note: Your users sessions will expire. Much like timeouts when purchasing things online, your users' unsaved form data will be lost.

This was previously covered in the forum 

  • https://www.odoo.com/forum/help-1/question/how-can-i-make-odoo-8-automatic-log-out-if-no-activity-perform-by-user-for-some-time-81363

  • https://www.odoo.com/forum/help-1/question/how-to-implement-automatically-signout-in-odoo-8-or-openerp-7-human-resource-module-if-the-pc-is-idle-or-sleep-condition-68076

It seems this should be made an adjustable feature company wide, or at least a freely available OCA module. Writing to the http.py file directly is not advisable, as it does not port or upgrade well.

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 4/12/15, 5:26 AM
Seen: 705 times
Last updated: 5/14/16, 7:00 AM