O'Reilly logo

Odoo Development Cookbook by Daniel Reis, Alexandre Fayolle, Holger Brunn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required