odoo-qweb-templates

Solid

Expert in Odoo QWeb templating for PDF reports, email templates, and website pages. Covers t-if, t-foreach, t-field, and report actions.

Data & Documents 39,350 stars 6386 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 1. **Activate**: Mention `@odoo-qweb-templates` and describe the report or template needed. 2. **Generate**: Receive a complete `ir.actions.report` record and QWeb template. 3. **Debug**: Paste a broken template to identify and fix rendering issues. ## Examples ### Example 1: Custom PDF Report ```xml <!-- Report Action --> <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" ref="model_hospital_patient"/> </record> <!-- QWeb Template --> <template id="report_patient_card"> <t t-call="web.html_container"> <t t-foreach="docs" t-as="doc"> <t t-call="web.external_layout"> <div class="page"> <h2>Patient Ca...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

odoo-xml-views-builder

Expert at building Odoo XML views: Form, List, Kanban, Search, Calendar, and Graph. Generates correct XML for Odoo 14-17 with proper visibility syntax.

39,350 Updated today
sickn33
Data & Documents Listed

odoo-18.0

Odoo 18 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups), cron and server actions, migrations and module upgrades, tests, i18n, and performance. Use this skill whenever work involves Odoo 18 or custom addons—even if the user only pastes a traceback, mentions addons/ or __manifest__.py, describes form/list/kanban/XML errors, HTTP controllers, or business rules on models—including building features, fixing bugs, refactoring, or reviewing addon code.

1 Updated today
Immoderate-humulin783
Data & Documents Listed

odoo-17.0

Odoo 17 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups), cron and server actions, migrations and module upgrades, tests, i18n, and performance. Use this skill whenever work involves Odoo 17 or custom addons—even if the user only pastes a traceback, mentions addons/ or __manifest__.py, describes form/tree/kanban/XML errors, HTTP controllers, or business rules on models—including building features, fixing bugs, refactoring, or reviewing addon code.

1 Updated today
Immoderate-humulin783
Testing & QA Listed

odoo-test-writer

Create and improve Odoo custom module tests using the Odoo test framework. Use when the user asks to add tests, create TransactionCase/HttpCase tests, test Odoo business logic, mock external APIs, use Form helper, test access rules, test workflows, or improve Odoo test coverage.

1 Updated today
Immoderate-humulin783
AI & Automation Solid

odoo-sales-crm-expert

Expert guide for Odoo Sales and CRM: pipeline stages, quotation templates, pricelists, sales teams, lead scoring, and forecasting.

39,350 Updated today
sickn33