Producing LibreOffice-based reports with Py3O
Odoo's native way of producing PDF documents uses QWeb templates and wkhtmltopdf
(refer to the QWeb-based PDF reports recipe). The drawback of this approach is that editing the layout of a report is tricky and requires some technical knowledge. Similarly, styling a report to match a graphic charter is tedious. Fortunately, the Odoo Community Association hosts a project called report_py3o, which allows using LibreOffice to define a report template. Then, the styling can be done easily by end users.
Note
At the time of writing this, report_py3o has not yet been migrated to Odoo 11. The recipe was tested using Odoo 10. It is expected that it will work with Odoo 11.0 with only minor changes, if at all. You can check whether the report_py3o
module was ported on https://github.com/OCA/reporting-engine/tree/11.0.
In this recipe, we will print a document with the books borrowed by a library member. We will use the same models as in the Email templates...