Extending an Odoo model in silkworm.py

Next, we create another file named silkworm.py. We will begin by creating a module that performs the same customizations we performed through Developer Mode in Chapter 13, Customizing Odoo for Your Business.

Why would we want to put our customization into a module rather than just using Developer Mode?

First off, changes made through Developer Mode are isolated within that instance of Odoo. If you decide you wish to create a new database, you will have to make all the developer changes by hand, again. More importantly, when you make the changes in a module, you have much more control over the final results.

Developer Mode is very powerful for quickly looking at views, analyzing fields on forms, and understanding ...

Get Working with Odoo 11 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.