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

Write a wizard to guide the user

In the Use Abstract Models for reusable Model features recipe in Chapter 4, Application Models, the base class models.TransientModel was introduced; this class shares a lot with normal Models except that the records of transient models are periodically cleaned up in the database, hence the name transient. These are used to create wizards or dialog boxes, which are filled in the user interface by the users and generally used to perform actions on the persistent records of the database.

This recipe extends the code from Chapter 3, Creating Odoo Modules by creating a wizard to record the borrowing of books by a library member.

Getting ready

If you want to follow the recipe, make sure you have the my_module addon module ...

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