When communicating with the outside world, it is often necessary to produce a PDF document from a record in the database. Odoo uses the same template language as that used for form views, QWeb.
In this recipe, we will create a QWeb report to print information about a book that is currently being borrowed by a partner. This recipe will reuse the models presented in the Adding a progress bar in kanban views recipe from earlier on in this chapter.