The Odoo framework provides a built-in facility to log field changes in chatter. In this recipe, we will enable logging on some of the fields, so when changes are made in them, Odoo will add logs in the chatter.
Logging user changes in chatter
Getting ready
For this recipe, we will be using the my_library module from the previous recipe Managing the mail alias. In this recipe, we will log changes from a few fields in the library.book model.
How to do it...
Modify the definitions of the fields, to enable logs for the fields when you change them. This is shown in the following...