Chapter 5. Basic Server Side Development

In this chapter, we will cover the following topics:

  • Defining model methods and use the API decorators
  • Reporting errors to the user
  • Obtaining an empty recordset for a different model
  • Creating new records
  • Updating values of recordset records
  • Searching for records
  • Combining recordsets
  • Filtering recordsets
  • Traversing recordset relations
  • Extending the business logic defined in a model
  • Extending write() and create()
  • Customizing how records are searched

Introduction

In Chapter 4, Application Models, we have seen how to declare or extend business models in custom modules. The recipes in that chapter cover writing methods for computed fields as well as methods to constrain the values of fields. This chapter focuses on the basics ...

Get Odoo Development Cookbook 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.