[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7146A1FF0RDM4WKNTE681J9":3,"skill-same:01M7146A1FF0RDM4WKNTE681J9":63},{"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":23,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M7146A1FF0RDM4WKNTE681J9","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.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcopilot\u002Fodoo-qweb-templates\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37],"templates","odoo","odoo qweb templates","PDF","safe","report","website","actions","email","reports","expert","self","pages","for","2026-11-10 10:12:30",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\"\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":28,"source":35,"description":7},"main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcopilot\u002Fodoo-qweb-templates","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill odoo-qweb-templates",{"tool":55,"command":56},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill odoo-qweb-templates",{"tool":58,"command":59},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill odoo-qweb-templates","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcopilot\u002Fodoo-qweb-templates\u002FSKILL.md",true,[],[64,74,81,89,95,103],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":69,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":73},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":73},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":73},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":90,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":73},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":73},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":73},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]