In the Use Abstract Models for reusable Model features recipe in Chapter 5, Application Models, the models.TransientModel base class 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 4, Creating Odoo Modules, by creating a wizard to record the borrowing of books by a library member.