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

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.

主站蜘蛛池模板: 迭部县| 乌拉特中旗| 米脂县| 苍南县| 大丰市| 东丰县| 滦平县| 临猗县| 西城区| 渭南市| 蕲春县| 高淳县| 孝义市| 叶城县| 进贤县| 澄迈县| 遂昌县| 湘潭县| 阿坝| 福安市| 札达县| 醴陵市| 什邡市| 思茅市| 临夏县| 奇台县| 彩票| 大城县| 怀远县| 大同县| 无锡市| 康平县| 宜阳县| 逊克县| 望奎县| 和硕县| 石楼县| 洛隆县| 常德市| 余江县| 广昌县|