- Odoo Development Essentials
- Daniel Reis
- 301字
- 2021-07-23 19:28:08
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 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 view layer describes the user interface. Views are defined using XML, which is used by the web client framework to generate data-aware HTML views.
The web client views perform data persistent actions by interacting with the server ORM. These can be basic operations such as write or delete, but can also invoke methods defined in the ORM Python objects, performing more complex business logic. This is what we refer to as the controller layer.
With this approach, you will be able to gradually learn about the basic building blocks that make up an application and experience the iterative process of building an Odoo module from scratch.
- 華為HMS生態與應用開發實戰
- C/C++算法從菜鳥到達人
- PostgreSQL Replication(Second Edition)
- PySide GUI Application Development(Second Edition)
- Swift語言實戰精講
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- Learning Nessus for Penetration Testing
- Java 從入門到項目實踐(超值版)
- Building Slack Bots
- OpenCV Android開發實戰
- AutoCAD基礎教程
- Using Yocto Project with BeagleBone Black
- 輕松學Scratch 3.0 少兒編程(全彩)
- Python實戰指南:手把手教你掌握300個精彩案例
- Python Natural Language Processing