Login History & Sessions
Every login attempt with its IP address, browser and system, a list of open sessions you can log out remotely, a session limit per user and an email when someone logs in from a new device.
| Odoo | 16.0, 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Discuss (mail), installed with almost every database |
| Licence | OPL-1, 16 EUR |
| Tests | 19 automated, run on every version |
| Module | user_ |
The situation
Standard Odoo keeps one field, Latest Connection, on the user. A wrong password only lands in the server log, where nobody looks. When Tom reports a stolen laptop, you can't see which browsers are still logged in to his account, and you can't end the session on that laptop without changing his password.
This module writes a line for every login attempt: Success, Failed or Blocked, with the login that was typed, the IP address, browser, system and device. Each browser login becomes a session you can log out from the Active Sessions list or from the user's own preferences. You can cap how many sessions a user keeps open, and users can get an email when their account is used from a device they haven't used before.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Login History & Sessions and click Activate. It needs Discuss (mail) for the alert email. Logging starts with the first login after installation.
Apps › user_login_session_guard › Activate
Set how long to keep logs, the default session limit and what happens when it's reached, and whether new device alerts are on. Give a single user a different limit in the Login Security tab of their user form.
Settings › General Settings › Login History & Sessions
Nothing changes for users at login. Administrators open Login History to check failed attempts or a user's devices, and Active Sessions to log out a browser that shouldn't be logged in. The Logins smart button on a user form opens that user's history.
Fine print
Log
Need the log in a different shape?
Tell us what your auditor or security team asks for, and we'll tell you whether the current fields cover it.
Email odoo.expert.111@gmail.com
Also by Awins
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module