Chapter 6. Advanced Server Side Development Techniques

In this chapter, we will see how to:

  • Change the user performing an action
  • Call a method with a modified context
  • Execute raw SQL queries
  • Write a wizard to guide the user
  • Define onchange methods
  • Call onchange methods on the server side
  • Port old API code to the new API

Introduction

In Chapter 5, Basic Server Side Development, we saw how to write methods on a model class, how to extend methods from inherited models, and how to work with recordsets. This chapter deals with more advanced topics such as working with the environment of a recordset and working with onchange methods.

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.