Phong Vy
Phong Vy

Reputation: 401

How can I "catch" action edit in odoo

I want to create a new module that save history of a record when someone edit it but doesn't find out any documents regards how to catch an edit action. Does anyone know how to do it ?

Upvotes: 1

Views: 342

Answers (2)

Charif DZ
Charif DZ

Reputation: 14721

if you don't want to use the models in the addons store, You can create a new class inherit from models.Model and overrid the create and write method to save audit in another model and create new Model that inherit the new model not the models.Model class this when ever a create or write is happen it will call the create and write of the parent class not the create

Upvotes: 1

There are few modules in app store which provide that functionality.

Audit Trail

Audit Log

One blog is there, how to use audit trail in odoo prepared by Mayur maherswari.

Audit Trail in OpenERP - (Odoo)

Upvotes: 1

Related Questions