Audit Trail & Change Log: Field History, Who Changed What, Delete Snapshots
by Viyug Infotech https://viyuginfotech.com
Change Audit Trail
Rule-based logging of creates, edits and deletes with readable before and after values. A history next to every audited field, a snapshot of every deleted record, and visibility that follows your access rights. Free.
Field history on the form Delete snapshots Revert a save CSV and Excel export
Planning a change, not just recording it?
This free app tells you what changed. Our paid app tells you what a change will break before you make it.
Before you remove a field, model, view or automation: scan every technical reference, get an explainable risk level and an AI-written test plan.
From "who changed this?" to a clear answer
A customer's bank account, a price, a user's rights: when something changed, you need the who, the when and the value before.
Without it
- Chatter tracking only covers a few fields on some documents
- Deleted records are gone, with no trace of their values
- Nobody knows which import or integration overwrote a value
- Reverting a wrong save means retyping from memory
With Change Audit Trail
- Choose any model and log all business fields or just the ones that matter
- Every deletion keeps a searchable snapshot of the record
- Each entry shows user, time, IP address, browser and origin
- Revert a logged save in one click, with a conflict check
What you get
Audit rules per model
Pick a model and switch creation, edits and deletion on or off. Record opens and data exports are optional. Nothing is logged until you switch a rule on.
All fields or just a few
Log every business field, or only listed ones. Editable fields count even when computed (order line quantity and price); technical, read-only computed and binary fields are left out, and password, token and secret values are never stored.
Readable values
Selection labels instead of keys, record names instead of ids, tags added and removed, amounts with their currency, dates in the reader's timezone and language.
History next to every field
A small history icon next to each audited field label opens that field's timeline: who, when, old and new value, and the reason if one was given.
Delete snapshots
When a record is deleted, every tracked value is kept, child lines included by name. Search deleted records by any value they contained.
One save, one entry
Several writes in the same save are merged into one entry per record. Entries of the same transaction share a reference you can group by.
Visibility follows your access rights
Auditors only see entries of records they can read, in companies they can access, and never values of fields protected by groups they lack. In lists, forms, exports and digests.
Transition and threshold filters
Log a field only when it moves from or to chosen values, for example an invoice going from Posted back to Draft, or when a number changes by more than an amount or a percentage.
Origin filter per rule
Choose which channels are logged: user interface, external API, scheduled actions, imports, server actions and scripts. Leave out the nightly sync on one rule only.
Ask for a reason
Mark a field as needing a reason. The form asks for a short explanation on save and keeps it with the change. API callers can pass it too.
Revert with conflict check
Undo the field changes of a logged save. A field changed again since is skipped and reported. The revert itself is logged.
Log, field changes, pivot and graph
Filter by model, record, user, field, date, operation, origin and company. Group by transaction or day. Every change to one field in one list.
Digests and watches
Daily or weekly email digests per rule, and personal watches on single records. Each recipient only gets what they are allowed to read.
Tune noisy rules
See entries per day and the fields and users behind most of them, then exclude a field or a user with one click.
Presets, import and export
Start from ready-made rules for contacts, users, products, invoices, orders, employees and transfers. Move rules between databases as a JSON file with validation.
PDF, CSV and Excel
Print the history of selected records as a PDF report. Export filtered changes to CSV or Excel with the libraries Odoo already ships.
Retention and mass operations
Delete old entries every night in batches, globally or per rule. Off by default. An import or mass edit above a threshold is logged as one summary entry.
Never blocks a save
Entries are written in two batched inserts when the transaction commits. If logging fails, the error is recorded in the server log and the user's save still goes through.
See it working
Fictional contacts and users, edited over three weeks.
Audit log
Every create, change and deletion with the user, the time, the origin and a readable summary of the changed fields.

One entry, one save
The Tax ID and a tag were changed in the same save, with the reason the user gave. IP address, browser and transaction are kept with it.

History next to the field
Click the history icon next to a field label to see that field's changes without leaving the record.

Ask for a reason
Fields marked as needing a reason open a short dialog on save. Cancel and nothing is saved.

On every audited record
Change History and Watch Changes appear in the Action menu of every model with a rule.

Record history, child lines included
The history of a company also shows changes to its contacts, because the rule shows line changes on the parent.

Delete snapshot
A deleted contact keeps all its tracked values. Search the log by any of them.

Every field change in one list
One line per changed field. Filter by field, user or date, for example every change to an email address this quarter.

Pivot and graph
Which fields change most, and who changes them.

Audit rule
Operations, company, users, record filter and parent record. Per field: exclude, hide the value, ask a reason, only from or to some values, minimum change.

Tune a noisy rule
Entries per day and the fields and users behind them, each with a one-click exclusion.

Starter presets
Ready-made rules for the document types installed in your database. Import and export rules as JSON from the same window.

Export to Excel or CSV
Filter by date, document type, user, operation or field. Only entries you are allowed to see end up in the file.

Settings
Retention, the mass-operation threshold and whether IP address and browser are stored.

Configuration
Settings
Audit Trail > Configuration > Settings. Every setting with its default.
| Setting | Default | What it does |
|---|---|---|
| Keep audit entries | 0 days (keep forever) | Entries older than this are deleted every night in batches. A rule can set its own period. |
| Summarise operations above | 500 records | One operation on more records than this (an import, a mass edit) becomes one summary entry, visible to Audit Managers. |
| Store IP address and browser | On | Keeps the IP address and the browser and operating system of the person making the change. |
Rule options
Audit Trail > Configuration > Audit Rules.
| Option | Default | What it does |
|---|---|---|
| Creation, Changes, Deletion | On | Which operations are logged. |
| Record opens | Off | Logs each time someone opens a record. Shows a volume warning when switched on. |
| Data exports | Off | Logs exports from list views: who, how many records, which columns. |
| Auditors see deletions | Off | Entries of deleted records are for Audit Managers; tick to show them to Auditors too. |
| Field scope | All business fields | Or only the fields you list. |
| Per field | - | Exclude, hide the value, ask a reason, only from / only to values, minimum change (amount or %). |
| Company | Every company | Only log records of one company. |
| Only users in groups / Ignored users | Empty | Limit logging to some users, or leave out integration and cron users. |
| Only records matching | All records | A record filter, for example only companies, or only customers. |
| Show on parent | Empty | For line models: changes also appear in the history of the parent record. |
| Origins | All on | User interface, external API, scheduled actions, imports, server actions, scripts. |
| Email digest | No digest | Daily or weekly summary to chosen users. |
| Keep entries | 0 (use the global setting) | Retention for this rule only. |
Roles and access
| Role | Can see and do |
|---|---|
| Auditor | Read entries and field histories of records and fields they can already read, export them, print the history report. |
| Audit Manager | Everything an Auditor can, plus rules, presets, import and export of rules, tuning, settings, reverts, and deleting entries. Nobody can edit entries. |
| Every internal user | Watch a record they can read and receive its changes in a daily digest. Give a reason when a field asks for one. |
Scheduled jobs
| Job | Runs | Does |
|---|---|---|
| Change Audit: retention | Daily | Deletes entries older than the rule or global retention, in batches of 5,000. |
| Change Audit: email digests | Daily | Sends rule digests (daily, or weekly every 7 days) and personal watch digests. |
For developers and scripts
| Context key | Effect |
|---|---|
| change_audit_disable=True | No logging for this call, for example in a migration script. |
| change_audit_reason="..." | Stores the reason with the entries of this call, like the form dialog does. |
Good to know
Who sees deleted records?
A deleted record can no longer be checked against record rules. So its entries are shown to Audit Managers only. Tick Auditors see deletions on a rule to also show them to Auditors who can read that kind of document, in the company the record belonged to. Fields protected by groups stay hidden as usual.
Light on your database
- Models without an active rule are not touched: the rule lookup is cached in memory
- Old values are read once per save for all records and fields, not field by field
- Entries and field lines are written in two batched inserts when the transaction commits
- Changes made during module installation and upgrades are never logged
- Audit entries never log themselves
Questions
Does it work on Odoo Community?
Yes. It only needs Discuss, which every database has.
Is this the same as chatter tracking?
No. Chatter tracking covers fields a developer marked as tracked, on models with a chatter, and posts messages. This app logs any field of any model you choose, keeps deleted records, does not post messages and has its own searchable log.
Can someone edit or delete their own traces?
Nobody can create or edit entries from the interface or the API. Only Audit Managers can delete entries, and the retention job removes old ones if you set a period.
What happens if a rule is wrong, for example after a field was removed?
Unknown fields are skipped, a broken record filter falls back to logging every record of the rule, and any error while logging is written to the server log. The user's save always goes through.
Are passwords stored?
No. Fields named like passwords, tokens, secrets, API keys or signatures, and binary fields, are always logged as "changed, value not stored". You can do the same for any field with Hide value.
How do I see the history of one record?
Open the record and use the history icon next to a field label, or Action > Change History for all its entries, including those of its child lines when the rule shows them on the parent.
Can I see who opened a record?
Yes, switch on Record opens on the rule. It is off by default because it creates an entry for every open.
In which language are values shown?
Raw values are stored once. Field labels and selection values are shown in the language of the person reading, dates in their timezone. The field label and record name are also kept, so history stays readable after a field or module is removed.
What does Revert do exactly?
It writes back the old values of every field changed in that save and in the other entries of the same transaction, with your own access rights. Fields that changed again since, removed values and one2many lines are skipped and listed in the result.
Does a big import slow down?
Above the threshold in Settings (500 records by default), an operation is logged as one summary entry, and the per-record comparison is skipped.
Go further with paid Viyug apps
This app stays free. These paid apps from the same team work next to it:
Questions or ideas?
Write to us about setup, a bug or an idea for the next version.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 2512 |
| Technical Name |
change_audit_trail |
| License | LGPL-3 |
| Website | https://viyuginfotech.com |
Please log in to comment on this module