-
Book Overview & Buying
-
Table Of Contents
Odoo 14 Development Cookbook - Fourth Edition
By :
In my_library, we have a state field to indicate the current status of a book rent record. This state field is limited to the ongoing or returned statuses and it is not possible to add a new state to the business process. To avoid this, we can use the many2one field to give flexibility when designing the kanban workflow of a user's choice, and you can add/remove a new state any time.
For this recipe, we will be using the my_library module from Chapter 8, Advanced Server-Side Development Techniques. That module manages books and their categories. It also records book rents. We added an initial module, Chapter12/00_initial_module/my_library, to the GitHub repository for this book to help you get started: https://github.com/PacktPublishing/Odoo-14-Development-Cookbook-Fourth-Edition/tree/master/Chapter12.
Follow these simple steps to add stages to the library.book.rent module: