User Audit Log - Audit Trail, Session Management, Login History, User Activity Audit, Login Audit, Track Changes and Deleted Records Log
by Modvanta https://modvantaapps.tech/odoo-apps/audit-log/$ 8.97

See who changed what in Odoo, with the value before and after
An audit trail for any model: creations, changes and deletions with before and after values, the content of deleted records, successful and failed logins with the IP address, and a hash chain that shows whether anyone altered the log. Plus session management: active sessions, force logout, session timeout, session limits and login notification on a new device.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Odoo's chatter only tracks a few fields on a few models, and when a record is deleted its history goes with it. When a price, a bank account or a user's access rights change, there is often no way to tell who did it, when, or what the value was before.
This module records events on the models you choose with audit rules: who created, changed or deleted a record, when, from where (web client, server code, external API, import or scheduled job), from which IP address, and the value of each changed field before and after. A deleted record keeps the values of its fields in the log. Logins, failed logins and logouts are recorded too.
Every entry is sealed into a hash chain. Verify Integrity re-computes the chain and reports whether any entry was changed or removed. Secret values such as passwords and API keys are stored as hidden. A dashboard and a history of each record from its Action menu make the log easy to use.
Who it is for
Companies with compliance needs Show auditors who changed prices, partners, invoices or access rights, and when. | Administrators Find out who deleted a contact, changed a user's groups or tried to log in with a wrong password. | Managers of shared databases Many users in one Odoo, one place to answer what happened to a record. |
Key features
All screenshots were taken on Odoo 19 with this module installed on a clean demo database (company Northwind Trading Co, Odoo demo data). The events were made on the bench: Sam Taylor edited contacts and confirmed an order, prices were changed, a contact was deleted, and three logins failed. The IP addresses are documentation addresses.
Feature 1
Audit dashboard
Audit Log -> Dashboard shows record events, deletions, exports, logins and failed logins for the last 7, 30 or 90 days, events per day, the most active users, the most changed models, the latest deletions and failed logins by IP address.

Feature 2
Record changes across models
Audit Log -> Logs -> Record Changes lists creations, changes and deletions with date, user, event, document type, record, summary, origin and IP address. Here it is grouped by model.
Filters for created, changed, deleted, opened and exported
Filters for external API, imports, scheduled jobs and superuser mode

Feature 3
Before and after values
Each entry shows who and when, what record, where from, and a Before / After table of every changed field. Here Sam Taylor changed the phone of Azure Interior.

Feature 4
Deleted records keep their content
When a record is deleted, the entry keeps the values its fields had: here 42 field values of the deleted contact Harbor Office Supplies, with who deleted it and when.

Feature 5
Secrets stay hidden
A secret value, such as an API key stored in a system parameter, is logged as (hidden): the log shows that it changed and who changed it, never the secret itself.

Feature 6
Login audit
Audit Log -> Logins lists successful and failed logins with the account, the IP address, the origin and the browser. Three wrong passwords for the admin account from one address stand out at once.

Feature 7
Preset rules in one click
Add Preset Rules creates audit rules for contacts, users and access rights, products and prices, sales, and invoices and payments, listing the models each preset covers. Models of apps that are not installed are skipped.

Feature 8
History of one record
On a record of an audited model, Action -> Audit Log opens the history of that record only.

Feature 9
Audit rules
Audit Log -> Rules lists the audited models with what is logged (creations, changes, deletions, form openings, exports), the fields and users to log, the retention in days and the number of entries.
A rule can log all fields or a chosen list, and hide sensitive fields
A rule can log everybody or only some users or groups

Feature 10
Integrity check of the whole log
Settings and Integrity holds the login audit switches and retention, and the hash chain. Verify Integrity checked the 41 sealed entries of the bench and reported no tampering.

New in version 1.1: session management
Active sessions, force logout, session timeout and login history. Shot on an Odoo 19 demo database; the test users signed in from separate browsers.
Feature 11
Active sessions of every user
Every open session in one list, built on Odoo's own device log: online, idle or offline, operating system, browser, computer or mobile, the IP address and country the session started from, login time, last activity, minutes idle and how many audited actions were made in it. Select sessions and click Log Out to force a logout.

Feature 12
One session in detail
The device, the login IP and location, every IP address the session used, login time and last activity. Force Logout closes it; Activity of This Session lists what was done through it.

Feature 13
What was done in a session
The audit log entries made through one session - here a contact created from a phone. Trace a suspicious session back to its actions, then close it.

Feature 14
Login history with location and device
Logins, failed logins, logouts, forced logouts and timeouts with the IP address, country and city (from the server's GeoIP database, no external service), operating system and browser. A login from a device the account never used is flagged as a new device; a login from another country sooner than anyone can travel is flagged as suspicious.

Feature 15
Login history report
Pivot and graph views of the login history: per user and event, per day, per country or browser.

Feature 16
Session policies per group
Give some groups their own idle timeout, maximum session length and limit on open sessions - here shop floor terminals log out after one idle minute and allow one session, administrators after 15 minutes with two sessions. Everyone else gets the defaults.

Feature 17
Session timeout and session limit settings
Auto logout after N idle minutes (the browser reports real mouse and keyboard activity, background polling does not count), maximum session length in hours, sessions per user with log out the oldest or refuse the new one, and the impossible travel window. Every session closed this way is written to the audit log.

Feature 18
Login notification on a new device
Alerts for a login from a new device or a suspicious login, sent to the chosen recipients and, with Email the User Too, to the person who logged in, with the device, IP address and location. Any alert can also go out once a day as a digest.

Feature 19
Log out all sessions of a user
Log Out All Sessions on the user form (or from the Action menu of the user list) closes every session of that user at once; the Sessions button opens them.

Feature 20
Sessions on the dashboard
Open sessions, sessions and users online now, logins from a new device, suspicious logins and forced logouts and timeouts of the period. Each tile opens the list behind it.

How it works, step by step
| 1 | Install the module It depends only on base and web. Logins are recorded straight away. |
| 2 | Add rules Audit Log -> Rules -> Add Preset Rules, or create a rule for any model, with the operations and fields to log. |
| 3 | Work as usual Every change on an audited model is logged with the user, the origin and the values before and after. |
| 4 | Review and verify Use the dashboard, the logs, the record history and Verify Integrity. |
Settings
Rules are in Audit Log -> Rules, the rest in Audit Log -> Configuration -> Settings and Integrity.
| Session management (settings) | Log out after idle (minutes), maximum session length (hours), sessions per user and what happens over the limit, impossible travel window (hours). 0 means no limit. |
| Session Policies | Other values for some groups; the first matching policy applies. |
| Alerts | Login from a new device and suspicious login, optionally to the user too; any alert as it happens or once a day. |
| Creations / Changes / Deletions | What a rule logs for its model. Deletions keep the field values of the deleted record. |
| Form Opened / Exports | Also log when a record is opened in a form or exported. |
| Fields to Log / Sensitive Fields | All fields or a chosen list, and fields whose values are hidden in the log. |
| Users to Log | Everybody, or only some users or groups. |
| Keep Entries (days) | Retention per rule. Removed entries are counted, so the integrity check still adds up. |
| Login audit | Successful logins, failed logins, logouts, password and 2FA changes, and how long login events are kept. |
Frequently asked questions
Does background polling keep an idle session alive?
No. The browser reports real activity (mouse, keyboard, touch) at most once a minute, and the requests the web client sends by itself do not reset the idle clock. When the delay has passed the browser closes the session and the server refuses it as well.
Where does the location come from?
From the GeoIP database on your server, which Odoo already uses for its device list. No IP address is sent to an outside service. Without a GeoIP database country and city stay empty.
Is this the same as the Auth Timeout module of Odoo?
No. That hidden module locks the screen and asks for the password again. This one logs the session out and writes it to the audit log, and it also limits the number of open sessions. They can be used together.
Can someone edit or delete log entries?
Entries are sealed in a hash chain. Verify Integrity recomputes the chain and reports any entry that was changed or removed.
Does it log changes made by code, imports or the API?
Yes. Each entry records its origin: web client, server code, external API, import or scheduled job, and whether superuser mode was used.
Are passwords or API keys stored in the log?
No. Secret values are logged as (hidden), so the log shows that they changed without storing them.
Can I see the history of one record?
Yes. Action -> Audit Log on the record opens its history, and History of This Record is available on every entry.
Does it slow Odoo down?
Only the models with a rule are logged, and a rule can be limited to some fields and some users. The log has a retention per rule.
Compatibility
Odoo 19 Community and Enterprise | Depends on base, web | Tested 104 automated tests |
Know who changed what, and prove it
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 3934 |
| Technical Name |
mdv_audit_log |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/audit-log/ |
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