Odoo Help

1

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

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

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

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

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.

Register

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)

Stats

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