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

Introducing the Library project

To explain the developer tools, we will use a simple project: we will create a very simple Library app. Our Library aims to keep a record of our Books and their Authors. It should keep a list of the Authors and the Books authored by each Author.

Our Library app needs two Models: Authors and Books. These two Models have a many-to-many relationship between them: each Author can have many Books, and each Book can have many Authors.

Odoo already provides the built-in Partner Model, with the res.partner technical name, to represent people, organizations, and addresses. For example, customers, suppliers, contact people, and application users are all Partners.

We will make our life simpler if we reuse it for the Authors of our Library app. We will be adding an Is Book Author? flag to this Model, and a menu item showing only the Author Partners.

The book we will create has a completely new Model, the corresponding form, and list views, and a menu item to access them.

主站蜘蛛池模板: 康保县| 夏津县| 天水市| 九龙县| 汶上县| 依兰县| 安宁市| 陇南市| 清流县| 花莲县| 长葛市| 拉萨市| 古田县| 扶风县| 无锡市| 来凤县| 浦县| 城固县| 涞源县| 霞浦县| 象州县| 扶风县| 江孜县| 海门市| 沙洋县| 武宣县| 宁明县| 会同县| 宁晋县| 麻阳| 普洱| 泽库县| 开化县| 建德市| 安丘市| 永川市| 芦溪县| 盐城市| 长岭县| 隆尧县| 水城县|