Reports are an invaluable feature for business apps. The built-in QWeb report engine is the default report engine. Reports are designed using QWeb templates to produce HTML documents that can then be converted to PDF form.
This means we can conveniently leverage what we have learned about QWeb and apply it to create business reports. In this chapter, we will be adding a report to our Library app, and will review the most important techniques to use with QWeb reports, including report computations such as totals, translation, and print paper formats.
The topics covered in this chapter are the following:
- Installing wkhtmltopdf
- Creating business reports
- QWeb report templates
- Presenting data in reports
- Rendering images
- Report totals
- Defining paper formats
- Enabling language translation in reports
- Reports based on custom SQL