Chapter 7: Recordsets – Working with Model Data

In the previous chapters, we gave an overview of model creation and loading data into models. Now that we have a data model and some data to work with, it's time to learn more about how to programmatically interact with it.

A business application needs business logic to compute data, perform validations, or automate operations. The Odoo framework API provides the tools for a developer to implement this business logic. Most of the time, this means querying, transforming, and writing data.

Odoo implements an Object-Relational Mapping (ORM) layer on top of the lower level database. The ORM objects provide the Application Programming Interface (API) to be used to interact with the data. This API provides ...

Get Odoo 15 Development Essentials - Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.