Designing report content
The report content is written in HTML and makes use of Bootstrap 4 to help design the report's layout. Bootstrap is widely used in web development.
Tip
A complete reference can be found at http://getbootstrap.com.
Unlike Kanban views, the report QWeb templates are rendered on the server side and use the Python QWeb implementation. So, there are some differences to be aware of, compared to the JavaScript QWeb implementation. QWeb expressions are evaluated using Python syntax, not JavaScript.
Understanding the report rendering context
The server-side context where expressions are evaluated is also different from the client-side context that's used for Kanban views. On a report template, the following variables are available:
docs
is an iterable collection with the records to render the report for.doc_ids
is a list of the IDs of the records to render the report for.doc_model
identifies the model of the records; for example...