In Chapter 3, Your First Odoo Application, we saw an overview of all the main components involved in building an application for Odoo. In this and the next chapters, we will go into detail on each of the layers that make up an application: models, views, and business logic.
In this chapter, we will learn more about the model layer, and how to use models to design the data structures that support applications. We will explore the capabilities of models and fields, including defining model relations, adding computed fields, and creating data constraints.
The following topics will be covered in this chapter:
- Learning project—improving the Library app
- Creating models
- Creating fields
- Relationships between models
- Computed fields
- Model constraints
- About the Odoo base models