Audit Trail
Who changed what, and when
Choose the models to audit. For every creation, change and deletion of their records, Audit Trail stores the user, the date, the record and, field by field, the old and the new value as the user saw them, with names instead of ids and labels instead of technical values. The values of a deleted record stay in its deletion log.
It also keeps a login history and can log the exports, imports and printed reports of audited records. Nobody can edit or delete a log, administrators included.
1Field by field
Old and new value of every changed field, as the user saw them.
2Login history
Logins, failed logins and logouts with IP address, browser and location.
3Data movements
Exports, imports and printed reports of audited records, one log each.
4Tamper-proof
Logs are read-only for everyone; only the retention cleanup removes them.

One line per logged operation, with the user, the operation, the model and the record.
One rule per model
Log creations, changes and deletions, each switchable, and leave out the fields you don't need. Load Starter Rules creates rules for contacts, users, products, invoices, sales and purchase orders and employees (those installed) in one click.

One rule per audited model.
Every detail of a change
Each log shows the user, the date, the source and the old and new value of each changed field. A changed text or HTML field can be compared side by side, with the removed and added words highlighted; HTML is compared as plain text and never rendered.

A log with the old and new value of each changed field.
Field by field view
Next to one line per operation, a second list shows every changed field as its own line. Statistics of the last 30 days by model, field and user show what is noisy, and two buttons exclude that field or user from its rule.

Every changed field as its own line.
Login history
Logins, failed logins (also those refused by the login cooldown, a failed second factor and wrong passwords or API keys sent through the external API) and logouts, with IP address, browser, platform and, with Odoo's GeoIP database, country and city. Kept 90 days by default (at least 7 days). A login that matches no user is never stored, as it could be a password.

Failed logins grouped by IP address.
Exports, imports and prints
Each export (the Export button, CSV or XLSX, and direct calls through the external API or the web client), import and printed report of an audited model's records adds one log with the user, the source, the number of records, their IDs (the first 1,000) and the fields or the report. Switchable per rule.
Source of each operation
Web client, external API (JSON-2, JSON-RPC, XML-RPC), scheduled action, import, server action or other. It is detected on the server and cannot be set through the request context. Work done with superuser rights is logged under the user who triggered it.
Audit History on every record
An Audit History entry in the Actions menu of every audited model opens the logs of the open record or of the selected records. Only auditors and managers see it.
Exclusions and retention
Users or groups whose operations are not logged (for example an integration bot), with every change of these exclusions written to the server log. Record logs are kept forever by default; set a number of days for all models or per rule, and older logs are deleted automatically.
Summary in the chatter
Optionally, each logged change is also posted as an internal note in the record's chatter, leaving out the fields Odoo already tracks there.
Rules from test to production
Export the rules to a JSON file and import them in another database. The file holds the configuration only, never log data; unknown models, fields, users and groups are skipped and listed.
Reports
A PDF report of the selected logs, and Excel or CSV through Odoo's standard export of the log lists.
1Install the module.
2In the user form, give the Audit Trail access right: Auditor (reads logs) or Manager (also edits rules).
3Go to Audit Trail > Configuration > Rules and add a rule for each model to audit, or use Load Starter Rules in the same menu.
4The login history needs no rule; it starts right away.
Never logged
File contents, fields limited to some user groups and secret-looking fields (password, token, API key). Models holding credentials or system secrets cannot get a rule, so auditors never read more than they are allowed to.
Your data
Everything is stored in your own Odoo database. The module calls no external service and sends no data anywhere. The login history holds personal data (IP address, browser, location); keep its retention in line with your privacy rules (GDPR, KVKK).
Languages
The interface is in English. Turkish, Arabic and Spanish translations cover the main record log screens; the login history and the options added in version 1.2 are in English for now.
Requirements
Odoo 20.0 Community. Depends only on the base and web modules. LGPL-3. Made by Ãmer Aba.
No. Logs cannot be edited or deleted from the interface or the API, administrators included. Only the retention cleanup removes old logs.
No. Secret-looking fields are never logged, and a failed login keeps the login name only when it belongs to an existing user.
The user who triggered the work. Work done with superuser rights (sudo) is logged under that user, with the source of the operation.
Use Configuration > Export / Import Rules. The JSON file holds the rules only, never log data.
No. It works on Odoo Community and depends only on the base and web modules.
20.0.1.2.4
- New store page: tabs for overview, features, getting started, limits, FAQ and release notes.
20.0.1.2.3
- A direct
export_datacall from the web client is now logged as an export.
20.0.1.2.2
- Audit History in the Actions menu of every audited model.
- Exports, imports and printed reports of audited records are logged.
- Side-by-side comparison of changed text and HTML fields.
- PDF report of the selected logs.
20.0.1.2.1
- Starter rules for common models, and export and import of rules as a JSON file.
- Statistics of field changes, and buttons to exclude a noisy field or user.
- Managers can configure rules without being Odoo administrators.
20.0.1.2.0
- Users and groups whose operations are not logged, per rule.
- Retention of record logs, for all models or per rule.
- Source of each operation: web client, external API, scheduled action, import, server action.
- Optional change summary in the chatter.
20.0.1.1.0
- Login history: logins, failed logins and logouts, with IP address, browser, platform and location.
20.0.1.0.0
- First release: a log of record creations, changes and deletions, field by field.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 2180 |
| Technical Name |
oao_audit_trail |
| License | LGPL-3 |
| Website | https://omeraba.com/apps |
Please log in to comment on this module
There are no comments yet!