Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Login History & Sessions v 17.0
  4. Sales Conditions FAQ

Login History & Sessions

by Awins
Odoo

$ 17.53

v 17.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Apps / Awins / user_login_session_guard

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.

Install›Configure›Use
/web#action=user_login_session_guard.action_user_login_log
Login History & Sessions in the Odoo backend
Odoo17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works withDiscuss (mail), installed with almost every database
LicenceOPL-1, 16 EUR
Tests19 automated, run on every version
Moduleuser_login_session_guard

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

Users & Companies › Login History
Every login attempt
User, login tried, result, reason (Wrong password, Unknown login, Archived user), date, IP address, browser and version, system, device and whether it came from a browser or the external API. List, form, pivot and graph views with filters for Failed, Today, Last 7 Days and group by user, IP or browser.
Without it: only the date of the last successful login is kept.
Result: Failed
Failed logins are kept
A failed login raises an error, and some login routes roll their transaction back. The log line is written again in its own transaction when that happens, so no attempt is lost and none is counted twice.
Result: Blocked
Core cooldown shows up
Odoo already ignores login attempts from an IP address after too many failures (base.login_cooldown_after). We don't replace that protection. Those ignored attempts are logged as Blocked, and Settings shows the current cooldown values.
Users & Companies › Active Sessions
Log out a session remotely
One row per open browser session with last activity, IP and device. Click Log Out and the next request from that browser lands on the login page. Normal logouts are recorded with their date and duration.
Without it: ending one session means changing the password, which logs out every device.
Preferences › My Sessions
Users manage their own sessions
Every user sees their own open sessions, marks the current one as This Session and can click Log Out All My Other Sessions.
Max. Open Sessions
Session limit per user
A default in Settings and an own value on the user form. When a new login goes over the limit, either the oldest session is logged out (Replaced by a New Login) or the login is refused with a clear message and logged as Blocked.
New Device Alert
Email on a new device
When a user logs in from a browser, system and IP address combination not used in the last 90 days (you choose the number), they get an email with the details. On for everyone in Settings, and each user can choose Email me or Never in their preferences.
Keep Login Logs
Daily cleanup
A scheduled action deletes logs older than the number of days you set (180 by default, 0 keeps everything) and marks sessions as Expired once Odoo's session inactivity limit has passed (a week by default).

Getting started

Install

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
Configure

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 Settings for Login History & Sessions
Use

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.

Active Sessions: one row per open browser, with Log Out on each and This Session ticked for your own.
Active Sessions: one row per open browser, with Log Out on each and This Session ticked for your own.
Failed Logins: wrong passwords and unknown logins from 192.0.2.77, then the attempts core's cooldown ignored, logged as Blocked.
Failed Logins: wrong passwords and unknown logins from 192.0.2.77, then the attempts core's cooldown ignored, logged as Blocked.

Fine print

Where does the IP address come from behind a proxy?
From the same place Odoo reads it. Run Odoo with proxy mode on and the address is the one your proxy sends in X-Forwarded-For. Without proxy mode you see the proxy's own address.
What does logging out a session cost on each request?
One lookup by primary key per signed-in request. The last activity is written at most every 10 minutes.
Are logins through the external API logged?
Yes. An XML-RPC or JSON-RPC authenticate is logged with channel External API. It doesn't count as a session and doesn't send alerts.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 17.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
Sessions opened before installation aren't listed, since they carry no marker. A session ended outside the module (Odoo's own device logout, a deleted session file) stays Active in the list until Odoo's session inactivity limit passes (a week by default), then the daily job marks it Expired; until then it counts toward the session limit. It doesn't look up the country or city of an IP address, and it doesn't log what users do after they log in.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

17.0.1.0.0 · Oct 2026
First release, published for Odoo 17.0 to 20.0.

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
QR code: email Awins about this module

Also by Awins

Product Warranty Claims Product Warranty Claims product_warranty_claim_track
Quotation Revisions Quotation Revisions sale_quotation_revision_compare
REST Carrier Connector REST Carrier Connector api_hub_carrier
Awins builds small Odoo modules that do one job. user_login_session_guard · 17.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 824
Technical Name user_login_session_guard
LicenseOPL-1
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with