Extending the business logic defined in a model

It is a very common practice to divide application features into different modules. By doing so, you can enable/disable features by installing/uninstalling the application. It then becomes necessary to customize the behavior of some methods that were defined in the original model. Sometimes, you want to add a new fields to an existing model. This is a very easy task in Odoo, and one of the most powerful features of the underlying framework.

We will demonstrate this by extending a method that creates records to add a new field in the created records.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset