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 templating language as the one used for form views, QWeb.
In this recipe, we will create a QWeb report to print the book currently borrowed by a member of our library example. This recipe will reuse the models presented in the Email templates recipe from this chapter.