Odoo 12 Development Cookbook - Third Edition
by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
How it works...
In order to enable chatter on any model, you will need to install the mail module first. This is because all the code required to enable chatter or mailing capabilities is part of the mail module. That's why in step 1 we added the mail module dependency in the manifest file of the my_library module. This will automatically install the mail module whenever you install the my_library module.
The fields and methods required to operate chatter are part of the mail.thread model. The mail.thread model is an abstract model and is just used for inheritance purposes. In step 2, we inherited the mail.thread model in the library.book.rent model. This will add all the necessary fields and methods required for chatter in the library.book.rent ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access