| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 639 |
| Technical Name |
nr_field_revision_rollback |
| License | OPL-1 |
| Website | https://github.com/nirav-rathod |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 639 |
| Technical Name |
nr_field_revision_rollback |
| License | OPL-1 |
| Website | https://github.com/nirav-rathod |
| Versions | 17.0 18.0 19.0 |
Field Revision Rollback
Track, diff, and rollback field changes directly from the chatter
Odoo 17 Odoo Online Ready
Key Features
Revision History
View complete change history for all tracked fields with flat and grouped views. Filter by field name and paginate large histories.
One-Click Rollback
Rollback any field to its previous value instantly. Supports char, integer, float, many2one, selection, date, boolean, monetary, text, and more.
Batch Rollback
“Revert to this point” — undo all field changes from a specific update in a single click.
Diff View
Side-by-side and unified diff for text and HTML fields. See exactly what changed, line by line, with added/removed line counts.
Inline Undo
Small undo icon on each tracking line in the chatter. Rollback any change without even opening a dialog.
Access Control
Two security groups: Revision Viewer (read-only history) and Revision Manager (can rollback). Full audit trail.
How It Works
1. Click “Revisions” in any chatter
The button appears on every model that uses mail.thread
with tracked fields — Sale Orders, Invoices, Contacts, Projects, etc.
No per-model configuration needed.
2. Browse, filter, and rollback
Switch between Flat (chronological) and Grouped (by message) views. Filter by field name. Click Rollback on any row, or Revert All to undo an entire update at once.
3. Diff text and HTML fields
Click the diff icon on text/HTML changes to see a unified or side-by-side diff viewer with green/red highlighting and +/- line counts.
4. Inline undo in chatter
Hover over any tracking line in a chatter message — a small undo icon appears. One click to rollback, no dialog needed.
Technical Highlights
- Zero Python models — All logic in JavaScript (OWL 2) and XML. No new database tables.
- Leverages existing data — Reads from
mail.tracking.value, built into Odoo core. - Performance optimized — Cached permissions and field metadata, parallel RPC calls, pagination (50 items/page), debounced filtering.
- Self-auditing — Every rollback writes via standard ORM, automatically creating a new tracking entry in the chatter.
- Odoo Online compatible — No external dependencies, no system calls, no custom Python.
- Odoo Online compatible — Works on Odoo.sh and Odoo Online (via App Store).
Supported Field Types
| Field Type | View History | Rollback | Diff |
|---|---|---|---|
| Char | ✓ | ✓ | — |
| Text | ✓ | ✓ | ✓ |
| HTML | ✓ | ✓ | ✓ |
| Integer | ✓ | ✓ | — |
| Float / Monetary | ✓ | ✓ | — |
| Boolean | ✓ | ✓ | — |
| Date / Datetime | ✓ | ✓ | — |
| Many2one | ✓ | ✓ | — |
| Selection | ✓ | ✓ | — |
| One2many / Many2many | ✓ | — | — |
Author: Nirav Rathod
Email: niravrathod473@gmail.com
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