Managing user sessions and ensuring secure access are critical for every Odoo deployment.
The User Activity Control Rootlevel module provides users complete visibility and control over login sessions.
From tracking device information to enforcing logout policies, this app helps improve both security and accountability in your Odoo system.
Logout from all devices with or without keeping current session logged in, from 'My preferences'
Track user login/logout activity with IP, browser, & device details.
Get Active users device log details
Configure settings of max session/device logs for all users; older entries are removed automatically.
How to use:
- Go to: Settings > Users & Companies > All Device Logs.
- Track Sessions: Each login automatically stores session info (Device, IP Address, Browser, OS, First & Last Activity).
- Set Maximum Session Records: In Settings > User Session Control → configure “Store user Login/Logout Session Information” to limit how many sessions per user are stored. Oldest logs auto-delete.
- Logout Options: Logout from all devices with or without keeping current session logged in, from 'My preferences'
- Login Status: User’s profile shows “Online / Offline” status automatically updated on login/logout.
- Auto Cleanup: System autovacuum removes duplicate/old session logs, keeping only valid active ones.
⚙️ Installation Requirements
Install the following Python libraries before using the module:
pip install pyyaml ua-parser user-agents
pip install sockets
🚀 Key Features
Track Login/Logout Activity
Monitor all user sessions with IP address, browser, operating system, and device details.
Real-time Online/Offline Status
Instantly see who is currently active in your Odoo system.
Session Control Options
- Logout all other sessions and keep the current one.
- Logout all sessions including the current one.
Auto Status Update
The login_status field is automatically updated when sessions are revoked.
Browser & Device Info Storage
Each login captures browser name, OS, and device type for auditing.
Forced Redirect & Auto Logout
- Redirect users to the login page if their session is revoked.
- Automatically logout all users when the module is installed.
Configurable Session Limits
Define the maximum number of session/device records per user. Older logs are purged automatically.
Accurate Client IP Handling
With UFW enabled, the real client IP is shown. Otherwise, the system falls back to the local server IP.
📬 Support
For issues, feature requests, or customizations, reach us at:
User Activity and Session Control Module for Odoo Users