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

Application Models

In this chapter, we will cover the following topics:

  • Defining the Model representation and order
  • Adding data fields to a Model
  • Using a float field with configurable precision
  • Adding a monetary field to a Model
  • Adding relational fields to a Model
  • Adding a hierarchy to a Model
  • Adding constraint validations to a Model
  • Adding computed fields to a Model
  • Exposing related fields stored in other models
  • Adding dynamic relations using Reference fields
  • Adding features to a Model using inheritance
  • Using abstract Models for reusable Model features
  • Using delegation inheritance to copy features to another Model