Extending the business logic defined in a model
Dividing application functionalities into various modules is a popular practice in Odoo. You may easily accomplish this by installing or uninstalling the application, which will enable or disable functionalities. Furthermore, you must modify the behavior of some methods that were predefined in the original app when you add new features to it. An old model could occasionally benefit from the addition of fresh fields. This is one of the most useful functions of the underlying framework and the process is quite simple in Odoo.
In this tutorial, we will see how you can extend the business logic of one method from the method in another module. Additionally, we will use the new module to add new fields to an existing module.
Getting ready
For this tutorial, we will continue to use the my_hostel
module from the last tutorial. Make sure that you have the hostel.room.category
model in the my_hostel
module.
For this tutorial, we will...