官术网_书友最值得收藏!

Models – Structuring the Application Data

In Chapter 3, Your First Odoo Application - A Practical Overview, we saw an overview of all the main components involved in building an application for Odoo. In these following chapters, it's time to explain the several layers that make up an application—models, views, and business logic—in more detail.

We will extend the To-Do app built in the previous chapter, and take it to another level. What if, instead of only a simple list of tasks, we also have a Kanban board showing the tasks as cards, and organize them into columns according to the stage they're at, such as To Do, Doing, and Done?

The following chapters will work toward this goal. Right now, in this chapter, we will learn how to use models to design the data structures that support applications in general, and our kanban extension in particular.

We will use that to explore the capabilities of models and fields, including defining model relations, adding computed fields, creating data constraints, and using the available extension (or inheritance) mechanisms to add them to models provided by already existing modules.

Let's get started then!

主站蜘蛛池模板: 靖江市| 闽侯县| 临潭县| 左云县| 汶川县| 隆化县| 金门县| 丰原市| 九台市| 来凤县| 黔南| 台州市| 双峰县| 朝阳区| 沅江市| 高阳县| 弥渡县| 前郭尔| 浑源县| 永清县| 仁怀市| 尖扎县| 和硕县| 西畴县| 东阳市| 射阳县| 武汉市| 昂仁县| 眉山市| 揭东县| 青州市| 汪清县| 满城县| 绥阳县| 安溪县| 罗田县| 台北市| 射洪县| 渑池县| 虹口区| 铁力市|