| name | odoo-qweb-templates |
| description | Expert in Odoo QWeb templating for PDF reports, email templates, and website pages. Covers t-if, t-foreach, t-field, and report actions. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | communication-content |
| category | email-comms |
| risk | safe |
| source | self |
| tags | ["skill","communication-content","email-comms","odoo","qweb","templates"] |
Odoo QWeb Templates
Overview
QWeb is Odoo's primary templating engine, used for PDF reports, website pages, and email templates. This skill generates correct, well-structured QWeb XML with proper directives, translation support, and report action bindings.
When to Use This Skill
- Creating a custom PDF report (invoice, delivery slip, certificate).
- Building a QWeb email template triggered by workflow actions.
- Designing Odoo website pages with dynamic content.
- Debugging QWeb rendering errors (
t-if, t-foreach issues).
How It Works
- Activate: Mention
@odoo-qweb-templates and describe the report or template needed.
- Generate: Receive a complete
ir.actions.report record and QWeb template.
- Debug: Paste a broken template to identify and fix rendering issues.
Examples
Example 1: Custom PDF Report
<record id="action_report_patient_card" model="ir.actions.report">
<field name="name">Patient Card</field>
<field name="model">hospital.patient</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">hospital_management.report_patient_card</field>
<field name="binding_model_id" =/>
Patient Card
Name:
Doctor:
Status: