User Login Validity - Time Based Access Control
by Steven Marp https://apps.odoo.com/apps/browse?repo_maintainer_id=512936$ 14.99
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 100 |
| Technical Name |
sm_user_login_validity |
| License | LGPL-3 |
| Website | https://apps.odoo.com/apps/browse?repo_maintainer_id=512936 |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 100 |
| Technical Name |
sm_user_login_validity |
| License | LGPL-3 |
| Website | https://apps.odoo.com/apps/browse?repo_maintainer_id=512936 |
| Versions | 18.0 19.0 |
User Login Validity
Time-Based Access Control — Restrict User Login to a Specific Date/Time Period
Watch It In Action
See how User Login Validity controls access with simple date settings and custom expiry messages.
Key Features
Validity PeriodSet start and end date/time per user. Leave empty for unrestricted access. Supports both “Valid From” and “Valid To” fields. |
Custom Expiry MessageDefine a personalized message shown on the login page when access is denied. Each user can have their own message. |
Secure BlockingCredentials are verified first, then validity is checked. No information leakage — wrong passwords still show generic error. |
Admin Never BlockedThe superuser (admin) is always allowed to login regardless of validity settings. You will never get locked out. |
Dedicated TabClean “Login Validity” tab in the user form with all settings in one place. Also visible read-only in user preferences. |
List View ColumnsOptional validity columns in the users list for a quick overview of all login periods at a glance. |
How It Works
Install ModuleInstall User Login Validity from the Apps menu. No extra dependencies required. |
Open User FormGo to Settings > Users > select a user and open the “Login Validity” tab. |
Set DatesSet “Login Valid From” and “Login Valid To” dates. Optionally write a custom expiry message. |
Done!Save and the user can now only login within the specified period. Outside that range, they see the custom message. |
Why This Module?
Contract EmployeesSet login validity matching the employment contract period. Access is automatically revoked when the contract ends — no manual deactivation needed. |
External ConsultantsGrant temporary access to external consultants or auditors for a specific project duration. Time-limited by default. |
Community & EnterpriseWorks on both Odoo Community and Enterprise editions. Only depends on the base module — available in every Odoo installation. |
Security ComplianceEnforce access expiration policies required by security audits. Credentials verified first, then validity checked — secure by design. |
Screenshots
Login Validity Tab in User Form |
Custom Expiry Message on Login Page |
Validity Columns in Users List |
Please log in to comment on this module