Creating Odoo Add-On Modules
Now that we have a development environment and know how to manage Odoo server instances and databases, we will learn how to create Odoo add-on modules.
Our main goal in this chapter is to understand how an add-on module is structured and the typical incremental workflow to add components to it. The various components mentioned in this chapter’s recipe names will be covered extensively in subsequent chapters.
An Odoo module can contain several elements:
- Business objects:
- Declared as Python classes, these resources are automatically persisted by Odoo based on their configuration
- Object views:
- A definition of business objects’ UI display
- Data files (XML or CSV files declaring the model metadata):
- Views or reports
- Configuration data (module parametrization and security rules)
- Demonstration data and more
- Web controllers:
- Handle requests from web browsers, static web data images, or CSS or JavaScript files used by the web interface...