Learning project – extending the Library app
In Chapter 3, Your First Odoo Application, we created the initial module for the Library app, providing a book catalogue. Now, we will create a module, library_member
, that extends the Library app to add the ability for library members to borrow books.
It will extend the Book Model and add a flag, signaling if they are available to borrow a book. This information should be shown in the Book form and on the website catalogue page.
It should add the Library Member master data Model. Members should store personal data, such as name, address, and email, similarly to Partners, and have specific data, such as the library card number. The most efficient solution is to use Delegation inheritance, where a Library Member record will be automatically created and contain a related Partner record. This solution makes all Partner fields available for Members, without data structure duplication.
We would like to provide Members with the messaging and social features...