[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHQF4KCX2TNEF3AN466HB4":3,"skill-same:01M7EHQF4KCX2TNEF3AN466HB4":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EHQF4KCX2TNEF3AN466HB4","odoo-qweb-templates",null,"Expert in Odoo QWeb templating for PDF reports, email templates, and website pages. Covers t-if, t-foreach, t-field, and report actions.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbusiness\u002Fodoo-qweb-templates\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: odoo-qweb-templates\ndescription: \"Expert in Odoo QWeb templating for PDF reports, email templates, and website pages. Covers t-if, t-foreach, t-field, and report actions.\"\nrisk: safe\nsource: \"self\"\ndate_added: \"2026-09-04\"\n---\n\n# Odoo QWeb Templates\n\n## Overview\n\nQWeb 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.\n\n## When to Use This Skill\n\n- Creating a custom PDF report (invoice, delivery slip, certificate).\n- Building a QWeb email template triggered by workflow actions.\n- Designing Odoo website pages with dynamic content.\n- Debugging QWeb rendering errors (`t-if`, `t-foreach` issues).\n\n## How It Works\n\n1. **Activate**: Mention `@odoo-qweb-templates` and describe the report or template needed.\n2. **Generate**: Receive a complete `ir.actions.report` record and QWeb template.\n3. **Debug**: Paste a broken template to identify and fix rendering issues.\n\n## Examples\n\n### Example 1: Custom PDF Report\n\n```xml\n\u003C!-- Report Action -->\n\u003Crecord id=\"action_report_patient_card\" model=\"ir.actions.report\">\n    \u003Cfield name=\"name\">Patient Card\u003C\u002Ffield>\n    \u003Cfield name=\"model\">hospital.patient\u003C\u002Ffield>\n    \u003Cfield name=\"report_type\">qweb-pdf\u003C\u002Ffield>\n    \u003Cfield name=\"report_name\">hospital_management.report_patient_card\u003C\u002Ffield>\n    \u003Cfield name=\"binding_model_id\" ref=\"model_hospital_patient\"\u002F>\n\u003C\u002Frecord>\n\n\u003C!-- QWeb Template -->\n\u003Ctemplate id=\"report_patient_card\">\n    \u003Ct t-call=\"web.html_container\">\n        \u003Ct t-foreach=\"docs\" t-as=\"doc\">\n            \u003Ct t-call=\"web.external_layout\">\n                \u003Cdiv class=\"page\">\n                    \u003Ch2>Patient Card\u003C\u002Fh2>\n                    \u003Ctable class=\"table table-bordered\">\n                        \u003Ctr>\n                            \u003Ctd>\u003Cstrong>Name:\u003C\u002Fstrong>\u003C\u002Ftd>\n                            \u003Ctd>\u003Ct t-field=\"doc.name\"\u002F>\u003C\u002Ftd>\n                        \u003C\u002Ftr>\n                        \u003Ctr>\n                            \u003Ctd>\u003Cstrong>Doctor:\u003C\u002Fstrong>\u003C\u002Ftd>\n                            \u003Ctd>\u003Ct t-field=\"doc.doctor_id.name\"\u002F>\u003C\u002Ftd>\n                        \u003C\u002Ftr>\n                        \u003Ctr>\n                            \u003Ctd>\u003Cstrong>Status:\u003C\u002Fstrong>\u003C\u002Ftd>\n                            \u003Ctd>\u003Ct t-field=\"doc.state\"\u002F>\u003C\u002Ftd>\n                        \u003C\u002Ftr>\n                    \u003C\u002Ftable>\n                \u003C\u002Fdiv>\n            \u003C\u002Ft>\n        \u003C\u002Ft>\n    \u003C\u002Ft>\n\u003C\u002Ftemplate>\n```\n\n### Example 2: Conditional Rendering\n\n```xml\n\u003C!-- Show a warning block only if the patient is not confirmed -->\n\u003Ct t-if=\"doc.state == 'draft'\">\n    \u003Cdiv class=\"alert alert-warning\">\n        \u003Cstrong>Warning:\u003C\u002Fstrong> This patient has not been confirmed yet.\n    \u003C\u002Fdiv>\n\u003C\u002Ft>\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `t-field` for model fields — Odoo auto-formats dates, monetary values, and booleans correctly.\n- ✅ **Do:** Use `t-out` (Odoo 15+) for safe HTML output of non-field strings. Use `t-esc` only on Odoo 14 and below (it HTML-escapes output).\n- ✅ **Do:** Call `web.external_layout` for PDF reports to automatically include the company header, footer, and logo.\n- ✅ **Do:** Use `_lt()` (lazy translation) for translatable string literals inside Python report helpers, not inline `t-esc`.\n- ❌ **Don't:** Use raw Python expressions inside QWeb — compute values in the model or a report `_get_report_values()` helper.\n- ❌ **Don't:** Forget `t-as` when using `t-foreach`; without it, you can't access the current record in the loop body.\n- ❌ **Don't:** Use `t-esc` where you intend to render HTML content — it will escape the tags and print them as raw text.\n\n## Limitations\n\n- Does not cover **website controller routing** for dynamic QWeb pages — that requires Python `http.route` knowledge.\n- **Email template** QWeb has different variable scope than report QWeb (`object` vs `docs`) — this skill primarily focuses on PDF reports.\n- QWeb JavaScript (used in Kanban\u002FForm widgets) is a different engine; this skill covers **server-side QWeb only**.\n- Does not cover **wkhtmltopdf configuration** for PDF rendering issues (page size, margins, header\u002Ffooter overlap).\n","# Odoo QWeb Templates\n\n## Overview\n\nQWeb 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.\n\n## When to Use This Skill\n\n- Creating a custom PDF report (invoice, delivery slip, certificate).\n- Building a QWeb email template triggered by workflow actions.\n- Designing Odoo website pages with dynamic content.\n- Debugging QWeb rendering errors (`t-if`, `t-foreach` issues).\n\n## How It Works\n\n1. **Activate**: Mention `@odoo-qweb-templates` and describe the report or template needed.\n2. **Generate**: Receive a complete `ir.actions.report` record and QWeb template.\n3. **Debug**: Paste a broken template to identify and fix rendering issues.\n\n## Examples\n\n### Example 1: Custom PDF Report\n\n```xml\n\u003C!-- Report Action -->\n\u003Crecord id=\"action_report_patient_card\" model=\"ir.actions.report\">\n    \u003Cfield name=\"name\">Patient Card\u003C\u002Ffield>\n    \u003Cfield name=\"model\">hospital.patient\u003C\u002Ffield>\n    \u003Cfield name=\"report_type\">qweb-pdf\u003C\u002Ffield>\n    \u003Cfield name=\"report_name\">hospital_management.report_patient_card\u003C\u002Ffield>\n    \u003Cfield name=\"binding_model_id\" ref=\"model_hospital_patient\"\u002F>\n\u003C\u002Frecord>\n\n\u003C!-- QWeb Template -->\n\u003Ctemplate id=\"report_patient_card\">\n    \u003Ct t-call=\"web.html_container\">\n        \u003Ct t-foreach=\"docs\" t-as=\"doc\">\n            \u003Ct t-call=\"web.external_layout\">\n                \u003Cdiv class=\"page\">\n                    \u003Ch2>Patient Card\u003C\u002Fh2>\n                    \u003Ctable class=\"table table-bordered\">\n                        \u003Ctr>\n                            \u003Ctd>\u003Cstrong>Name:\u003C\u002Fstrong>\u003C\u002Ftd>\n                            \u003Ctd>\u003Ct t-field=\"doc.name\"\u002F>\u003C\u002Ftd>\n                        \u003C\u002Ftr>\n                        \u003Ctr>\n                            \u003Ctd>\u003Cstrong>Doctor:\u003C\u002Fstrong>\u003C\u002Ftd>\n                            \u003Ctd>\u003Ct t-field=\"doc.doctor_id.name\"\u002F>\u003C\u002Ftd>\n                        \u003C\u002Ftr>\n                        \u003Ctr>\n                            \u003Ctd>\u003Cstrong>Status:\u003C\u002Fstrong>\u003C\u002Ftd>\n                            \u003Ctd>\u003Ct t-field=\"doc.state\"\u002F>\u003C\u002Ftd>\n                        \u003C\u002Ftr>\n                    \u003C\u002Ftable>\n                \u003C\u002Fdiv>\n            \u003C\u002Ft>\n        \u003C\u002Ft>\n    \u003C\u002Ft>\n\u003C\u002Ftemplate>\n```\n\n### Example 2: Conditional Rendering\n\n```xml\n\u003C!-- Show a warning block only if the patient is not confirmed -->\n\u003Ct t-if=\"doc.state == 'draft'\">\n    \u003Cdiv class=\"alert alert-warning\">\n        \u003Cstrong>Warning:\u003C\u002Fstrong> This patient has not been confirmed yet.\n    \u003C\u002Fdiv>\n\u003C\u002Ft>\n```\n\n## Best Practices\n\n- ✅ **Do:** Use `t-field` for model fields — Odoo auto-formats dates, monetary values, and booleans correctly.\n- ✅ **Do:** Use `t-out` (Odoo 15+) for safe HTML output of non-field strings. Use `t-esc` only on Odoo 14 and below (it HTML-escapes output).\n- ✅ **Do:** Call `web.external_layout` for PDF reports to automatically include the company header, footer, and logo.\n- ✅ **Do:** Use `_lt()` (lazy translation) for translatable string literals inside Python report helpers, not inline `t-esc`.\n- ❌ **Don't:** Use raw Python expressions inside QWeb — compute values in the model or a report `_get_report_values()` helper.\n- ❌ **Don't:** Forget `t-as` when using `t-foreach`; without it, you can't access the current record in the loop body.\n- ❌ **Don't:** Use `t-esc` where you intend to render HTML content — it will escape the tags and print them as raw text.\n\n## Limitations\n\n- Does not cover **website controller routing** for dynamic QWeb pages — that requires Python `http.route` knowledge.\n- **Email template** QWeb has different variable scope than report QWeb (`object` vs `docs`) — this skill primarily focuses on PDF reports.\n- QWeb JavaScript (used in Kanban\u002FForm widgets) is a different engine; this skill covers **server-side QWeb only**.\n- Does not cover **wkhtmltopdf configuration** for PDF rendering issues (page size, margins, header\u002Ffooter overlap).\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7},"safe","self","2026-09-04","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbusiness\u002Fodoo-qweb-templates","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill odoo-qweb-templates",{"tool":39,"command":40},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill odoo-qweb-templates",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill odoo-qweb-templates","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbusiness\u002Fodoo-qweb-templates\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":55},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":55},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":55},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":55},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":55},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]