Understanding the Odoo architecture
Before you can begin understanding Odoo, it is important that you have a basic understanding of the framework and underlying architecture that makes up Odoo applications. Each Odoo application has three primary components that make up the final application. Fortunately, you don't have to be an expert developer to understand how the Odoo framework fits together. The three components are models, views, and actions.
Models
In the Odoo framework, models are what hold and manage the data that make up your Odoo application. When you save a sales order in Odoo, the data for the sales order header is stored inside a model appropriately named sale.order
. Individual data items, such as order date and customer address, are known as fields.
Models can also be linked and associated with other models. For example, the sale.order
model is linked to the sale.order.line
model by the ID of the sales order. In this chapter, we will be adding a few fields to the sale.order
model...