| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 612 |
| Technical Name |
Daily_logout |
| License | LGPL-3 |
| Website | https://odoo.co.ke |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 612 |
| Technical Name |
Daily_logout |
| License | LGPL-3 |
| Website | https://odoo.co.ke |
| Versions | 18.0 19.0 |
Supports:
Community
Enterprise
Availability:
On Premise
Odoo.sh
Odoo Online
Security • Session Management • Compliance
Force Daily Logouts for Odoo
Keeping Odoo sessions open indefinitely after business hours is a serious security risk. Force Daily Logouts solves this by automatically terminating all active user sessions at a configured time each day — with a live countdown timer and a full session audit trail. Built for organizations that must enforce access control policies and demonstrate compliance.
Compatible With
Community
Enterprise
Odoo.sh
Not supported
on Odoo Online
📸 Module Screenshots
Visual walkthrough of the Force Daily Logouts module
1 Countdown Timer & Daily Logout Settings
A real-time "Logout in: Xh Ym Zs" countdown is displayed in the top-right corner of every Odoo page. At the same time, a dedicated Daily Logout Settings section in General Settings lets you enable the feature and set the daily logout time in 12-hour format (e.g., 5:00 PM).
Go to
Settings → General Settings → Daily Logout Settings to configure.
Tip: No server restart required. Enable the checkbox, enter the time,
and save — the countdown and scheduled logout are active immediately.
Key Features
- Scheduled daily logout — all users are automatically logged out at a configured time
- Live real-time countdown timer displayed in the Odoo navigation bar
- Session Audit log — timestamped record of every login and logout event
- Simple admin config — enable/disable toggle and 12-hour time field in General Settings
- Server-level (ORM) session invalidation — cannot be bypassed via browser refresh or URL
- Timezone-aware using
pytz(defaults to Kenyan / EAT UTC+3) - Compatible with Odoo 19.0 Community and Enterprise
The module logs out all active users at the configured time —
including administrators. It is a company-wide session enforcement mechanism, not a
per-user setting. In the current version, there is no user-level exemption list.
The logout time is evaluated in Kenyan time (EAT / UTC+3) using the
pytz library. This ensures correct behavior even when your Odoo server
is hosted in a different timezone (e.g., UTC).
Users are shown a live countdown timer throughout the day giving
ample warning to save their work before the logout occurs. Unsaved data in open
forms may be lost if users do not save before logout time — this is expected
behavior for a session enforcement module.
Session invalidation occurs at the Odoo server / ORM level via the
scheduled cron job. Even if a user does not have the browser open, their session
token is invalidated. When they next access Odoo they are redirected to the login
page. This is true server-side enforcement, not just a browser-side redirect.
Enter the time in 12-hour format, e.g.
5:00 PM,
6:30 PM, 7:20 AM. The hint text in the settings field
shows the expected format. Always include AM or PM.
No. Odoo Online does not allow custom Python modules. This module requires an
On-Premise or Odoo.sh installation.
Session audit logs are accessible via the Session Audit menu added
to Odoo after installation. You can filter by user, date range, and event type to
review the full session history.
Latest Release 19.0.1.0.0
2026-03-24
Initial Release
- Initial Odoo 19 release.
- Scheduled cron job to force logout all active users at a configured daily time.
- Real-time countdown timer in the Odoo navigation bar updated every second.
- Frontend countdown JavaScript (
daily_logout.js) and public login page support (login_countdown.js). - Admin settings: enable/disable toggle and 12-hour logout time field in General Settings.
- Session Audit log: timestamped record of all user login and logout events.
- Timezone-aware time evaluation using
pytz(defaulting to EAT / UTC+3).
Support & Contact
Email
support@odoo.co.ke
support@odoo.co.ke
Website
https://odoo.co.ke/helpdesk
https://odoo.co.ke/helpdesk
Phone
+254739444447
+254739444447
Response Time
1 business day SLA
1 business day SLA
Please log in to comment on this module