Chapter 2. Building Your First Odoo Application
Developing in Odoo most of the time means creating our own modules. In this chapter, we will create our first Odoo application, and you will learn the steps needed make it available to Odoo and install it.
Inspired by the notable todomvc.com project, we will build a simple to-do application. It should allow us to add new tasks, then mark them as completed, and finally clear the task list of all completed tasks.
You will learn how Odoo follows an MVC architecture, and we will go through the following layers during the to-do application implementation:
- The model, defining the structure of the data
- The view, describing the user interface
- The controller, supporting the business logic of the application
The model layer is defined with Python objects that have their data is stored in the PostgreSQL database. The database mapping is automatically managed by Odoo, and the mechanism responsible for this is the object relational model, (ORM).
The...