Odoo 11 Development Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Adding models

Models define the data structures to be used by our business applications. This recipe shows how to add a basic model to a module.

We will use a simple book library example to explain this; we want a model to represent books. Each book has a name and a list of authors.