Skip to Content
Menu
This question has been flagged
6 Replies
16237 Views

I need to be able to track changes to any data entered in Odoo.  For instance, if a customer's phone number is changed, I need to know who changed it, when it was changed, and what the original phone number was.  Is this something that is currently possible or can be accommodated in Odoo?


Thanks in advance.

Avatar
Discard
Best Answer

There an OCA module called Audit Log which will allow you to track all the operations and also provides the logs for that.

You just need to set the audit rules for any object and validate it.

Avatar
Discard
Best Answer

For Odoo Studio users; if you create a custom module in Odoo, you can't do this in Studio itself. However you can achieve this buy following steps:

  1. Activate developer mode
  2. In main screen type 'models'
  3. Find your model
  4. Find the field you need to track changes for
  5. In the properties tab, find the property "tracking"
  6. Change the value from 0 to 1
  7. Save the changes to your model.

This wil make sure that any change to this field is logged in the chatter.

Avatar
Discard

unfortunately, this does not appear to work in v16
1. The "Enable Ordered Tracking" field is not able to be modified.
2. I can use Studio to change the "Model" to allow this field to be modifiable, however, making the change you suggested results in an error: "Properties of base fields cannot be altered in this manner! Please modify them through Python code, preferably through a custom addon!"

"if you create a custom module in Odoo" - this is not supposed to work on fields in standard Odoo models - that requires Python code (via a custom addon/module)

Best Answer

is there is any way to track the previous data For Example: i want to track who updated the data and when but there is no tracking attribute for the field and no chatter for the model. Can i do it?

Avatar
Discard
Best Answer

Slightly easier method as most users know their field name but not the exact name of the module:


- Enable developer mode

- type: fields in the main screen

- search and find your field

- set "Enable Ordered Tracking" to 1


OR 


On the page you see the field you want to tack, click on the little bug logo (developer mode) and select "View Fields" These are all the fields in the page you are looking at. Select the one want you to track and do the same as above.

Avatar
Discard
Author Best Answer

Thanks for your time, I will look into that.

Avatar
Discard