Home › Curriculum › Odoo Developer › QWeb reports
Views, actions, reports and OWL · 16 min · 17–20QWeb reports
Report actions, templates, layouts, t-directives, formatting, paper formats and inheriting standard reports.
In this lesson
- Report actions and layouts
- QWeb directives
- Inheriting standard reports
Key points
- ir.actions.report: report_type, report_name, binding_model_id, paperformat_id
- web.html_container + web.external_layout; loop docs
- t-foreach/t-as, t-if, t-set, t-out, t-field with t-options, t-call, t-att
- Inherit templates with XPath; test page breaks, currency, language
Real-world example
A client's 13 Excel invoice designs became four inherited templates plus document layouts per company. One QWeb template with t-if on the company and a shared totals block meant a single change updated all of them.
Questions and answers
Which field sets the PDF's file name?
print_report_name.
What replaced t-esc in recent versions?
t-out.