odoo-17
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "odoo-17":https://skillpi.com/zh/skills/deepskill-36050b9069c795595375c8f844fae7e9ecb0c1bda5afb980a62fa35a583ed514。安装前核对上游来源和版本:https://github.com/unclecatvn/agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Odoo 17 开发参考:覆盖 Python 模型与 ORM(搜索、域、read_group、计算字段)、XML/CSV 数据与视图、OWL/JS 客户端代码、QWeb 报表、安全机制(ACL、记录规则、用户组)、定时任务与服务器动作、模块迁移与升级、测试、国际化(i18n)及性能优化。适用于涉及 Odoo 17 或自定义模块的工作场景——包括粘贴错误堆栈、引用 addons/ 或 __manifest__.py、描述表单/列表/看板/XML 错误、HTTP 控制器或模型业务规则(功能开发、Bug 修复、重构或代码审查)。也包含 Odoo 模块中 CSS/SCSS 资产的编写与审查。
介绍来源: third_party · unclecatvn · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: odoo-17
description: >
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.
Includes CSS/SCSS asset authoring and review for Odoo addons.
globs: "**/*.{py,xml,csv,js,ts,css,scss}"Odoo 17 Skill - Master Index
Master index for all Odoo 17 development guides. Read the appropriate guide from references/ based on your task.
Quick Reference
| Topic | File | When to Use |
|---|---|---|
| Actions | references/odoo-17-actions-guide.md |
Creating actions, menus, scheduled jobs, server actions |
| API Decorators | references/odoo-17-decorator-guide.md |
Using @api decorators, compute fields, validation |
| Controllers | references/odoo-17-controller-guide.md |
Writing HTTP endpoints, routes, web controllers |
| Data Files | references/odoo-17-data-guide.md |
XML/CSV data files, records, shortcuts |
| Development | references/odoo-17-development-guide.md |
Creating modules, manifest, reports, security, wizards |
| Field Types | references/odoo-17-field-guide.md |
Defining model fields, choosing field types |
| Manifest | references/odoo-17-manifest-guide.md |
manifest.py configuration, dependencies, hooks |
| Migration | references/odoo-17-migration-guide.md |
Upgrading modules, data migration, version changes |
| Mixins | references/odoo-17-mixins-guide.md |
mail.thread, activities, email aliases, tracking |
| Model Methods | references/odoo-17-model-guide.md |
Writing ORM queries, CRUD operations, domain filters |
| OWL Components | references/odoo-17-owl-guide.md |
Building OWL UI components, hooks, services |
| Performance | references/odoo-17-performance-guide.md |
Optimizing queries, fixing slow code, preventing N+1 |
| Reports | references/odoo-17-reports-guide.md |
QWeb reports, PDF/HTML, templates, paper formats |
| Security | references/odoo-17-security-guide.md |
Access rights, record rules, field permissions |
| Testing | references/odoo-17-testing-guide.md |
Writing tests, mocking, assertions, browser testing |
| Transactions | references/odoo-17-transaction-guide.md |
Handling database errors, savepoints, UniqueViolation |
| Translation | references/odoo-17-translation-guide.md |
Adding translations, localization, i18n |
| Views & XML | references/odoo-17-view-guide.md |
Writing XML views, actions, menus, QWeb templates |
Coding Conventions
Before writing code, run the odoo-workflow skill if it is installed (trace the real
source, Context Brief with file:line, definition of done); install it alongside this pack.
Read references/api-highlights.md before writing code and apply its Quick review
checks: the ❌ items are what not to use in Odoo 17.
Apply the relevant convention section in the guide you open. Conventions are advisory: preserve the style of an existing stable addon and keep diffs focused. When guidance conflicts, prefer Odoo 17 runtime/source behavior, then the surrounding addon style, then the convention.
- Module layout and asset placement: development and controller guides.
- XML formatting and external IDs: data, view, action, report, and security guides.
- Python naming, imports, recordsets, transactions, and translations: model, field, decorator, performance, transaction, and translation guides.
- JavaScript and CSS/SCSS: development guide.
File Structure
skills/odoo-17.0/
├── SKILL.md # This file - master index
└── references/ # Development guides
├── odoo-17-actions-guide.md
├── odoo-17-controller-guide.md
├── odoo-17-data-guide.md
├── odoo-17-decorator-guide.md
├── odoo-17-development-guide.md
├── odoo-17-field-guide.md
├── odoo-17-manifest-guide.md
├── odoo-17-migration-guide.md
├── odoo-17-mixins-guide.md
├── odoo-17-model-guide.md
├── odoo-17-owl-guide.md
├── odoo-17-performance-guide.md
├── odoo-17-reports-guide.md
├── odoo-17-security-guide.md
├── odoo-17-testing-guide.md
├── odoo-17-transaction-guide.md
├── odoo-17-translation-guide.md
└── odoo-17-view-guide.md
Base Code Reference (Odoo 17)
All guides are based on analysis of Odoo 17 source code:
odoo/models.py- ORM implementationodoo/fields.py- Field typesodoo/api.py- Decoratorsodoo/http.py- HTTP layerodoo/exceptions.py- Exception typesodoo/tools/translate.py- Translation systemodoo/addons/base/models/res_lang.py- Language modeladdons/web/static/src/core/l10n/translation.js- JS translations
External Documentation
版本历史
-
v1.0.20
GitHub ↗
原版更新说明
### Release Description `odoo-workflow` now finds the Odoo runtime and traces Python symbols with a bundled read-only helper instead of hand-written greps. Measured on Odoo 18 and 19 source (`tests/evals/odoo-workflow/benchmark.md`): the 1.0.19 recipe answered 12 of 34 trace questions correctly under zsh, the shell Claude Code runs on macOS, because `$ROOTS` does not split there and every lookup came back empty, which reads as NOT FOUND. Under bash it answered 20 of 34, missing fields from mixins and prototype parents, xmlids defined in CSV files, base method signatures, and report models without log fields. The helper answers 34 of 34 with about a tenth of the output. It also finds the Odoo core when the conf lives outside the project, which the 1.0.19 fallback never did in any of the three real projects checked. With Opus agents on the 24 evals, answer quality is at the ceiling for both versions (70/71 vs 71/71 expectations, 0 vs 2 wrong citations); the new version needs 12-18% fewer tool calls and 7-16% less context. Against no skill at all, it passes 23/23 expectations vs 21/23 when the agent is not told where Odoo is, and a blind grader prefers it in 16 of 32 pairs (6 for no skill, 10 ties), at about twice the output tokens. The definition of done was run end to end on scratch databases on 18 and 19 and rewritten from what actually happened. The Odoo 16-19 packs and both agents lose several claims the source disproves. ### Added - `skills/odoo-workflow/scripts/odoo_trace.py` - stdlib-only, read-only helper: `env`/`roots` (`.claude/odoo.json`, `.claude/launch.json`, conf discovery, `.odoo-version` checked against `release.py`, addons roots in Odoo's own order), `model`, `field` (own, `_inherit` parents, `_inherits`, `base`, magic fields from `_log_access`/`_auto`, dotted paths), `method` (`super()` order, hooks with absolute lines, AMBIGUOUS overrides), `depends`, `xmlid` (loaded XML/CSV records, generated `model_`/`field_`/`selection__`/`module_`/chart-template ids), `unlisted` (files the manifest or `__init__.py` never load). Exit 0 found, 1 NOT FOUND, 2 setup error; long lists are capped, `--all` lifts the cap. - `skills/odoo-workflow/references/definition-of-done.md` - the Step 5 commands, each run on 18 and 19: one scratch database for install and tests (`--http-port`, `--workers=0`, a summary counting more than 0 tests), upgrade test on an `odoo-bin db duplicate` copy with the migration version rules, `unlisted`, i18n (18 needs `i18n/` first; 19 takes the module before `-l`, `-o` keeps `vi_VN.po`), `msgmerge --no-fuzzy-matching --backup=none`, `odoo-bin db drop`, a security list, and hygiene checks per git repository. - `tests/test_odoo_trace.sh` + `tests/fixtures/odoo_trace/` - 67 fixture checks in `npm test`, 107 with `ODOO_ROOT_18`/`ODOO_ROOT_19`, under bash and zsh. - `tests/bench_odoo_workflow.py` - the 1.0.19 grep recipe (zsh and bash) against the helper on real checkouts, plus a core-in-roots check for real project directories. - `tests/evals/odoo-workflow/` - twelve new evals (mixin field, prototype copy, CSV xmlid, report model create_date, OWL t-inherit, controller override, Odoo 19 i18n export, multi-company model, portal sudo, traceback entry, Odoo 19 constraint, mixin method signature); eval 11 now requires the migration; every reference answer re-checked against source. `benchmark.md` records the agent runs: 1.0.19 vs 1.0.20, and no skill vs 1.0.20 (32 blind-graded pairs). ### Changed - `skills/odoo-workflow/SKILL.md` - Step 0 resolves the runtime through the helper; Step 1 uses the helper for Python symbols and zsh-safe greps over `$(odoo_trace roots)` for views (including `inherit_id` split over two lines), OWL `t-inherit`, JS `patch()`, routes and controller subclasses, ACLs and rename impact; Brief rules for company rules, schema changes (manifest bump plus migration script), `sudo()` audits, xmlids, magic fields and missing `groups=`; Brief-only and fast paths; the description also triggers on pasted tracebacks and symbol questions. `globs` is dropped: Claude Code skills do not read it. - `skills/odoo-workflow/templates/CLAUDE.md` - machine-local `.claude/odoo.json`, scratch databases only, migrations for stored-field changes, one commit and PR per repository. - `agents/odoo-code-tracer.md`, `agents/odoo-code-review.md` - version resolution matches the workflow (no "dominant manifest major", no 19.0 default); pack, roots and helper are passed in or located, else `pack not found`; `read_group` advice per version; `sudo()` needs a stated bypass and a prior access check; multi-company checks; hygiene per repository; invented symbols removed from the tracer's entry-point table and scenarios. - `skills/odoo-1[6-9].0/` - record rules use `company_ids` (not `user.company_ids`) with the real evaluation context; rule tests use `with_user()`; `check_company` / `_check_company_auto`; Odoo 19 ignores `_sql_constraints` (`models.Constraint` / `Index` / `UniqueIndex`), `@api.private`, `read_group` deprecated; Odoo 18 `check_access` / `has_access`; Odoo 19 `i18n export` argument order and ISO-code file names; `msgmerge` without fuzzy matching; demo defaults per version; no `<report>` tag in 18/19; XML `eval` context; invented translation APIs removed from the 19 guide. Each pack's `SKILL.md`, `CLAUDE.md` and `AGENTS.md` points at `references/api-highlights.md` before writing code. - `README.md` - rewritten for users: why the toolkit exists, a real task run with and without the skill (same model, blind-graded against the Odoo 18 source) with the aggregate numbers and their cost, installation routes, first run in an Odoo project, how the workflow and its helper work, everyday prompts, runtime and version resolution, limits, and testing. - `tests/test-skills.js` - the Step 1 greps run on fixtures under bash and zsh; the helper suite runs in `npm test`. - `tests/odoo-workflow-greps.sh` - the new greps against real source under both shells. - `.skillspector-baseline.yaml` - regenerated with SkillSpector 2.9.6 after the intentional changes; new entries carry a reason. ### Removed - `tests/fixtures/odoo_workflow/models.py` - the Python greps it tested are replaced by the helper.
-
v1.0.19
GitHub ↗
原版更新说明
### Release Description Publishes the CLI to npm again. `@unclecat/agent-skills-cli` stopped at 1.0.9 because no release since then ever ran `npm publish`: the release workflow only tagged and created GitHub releases. `npx @unclecat/agent-skills-cli` therefore still shipped the 1.0.9 pack set, without `odoo-16.0`, `odoo-workflow`, `odoo-commit`, or `flow-diagram`, so the README's CLI commands for those packs failed. Releases now publish through npm trusted publishing. Also replaces the README header with new showcase images. ### Fixed - `.github/workflows/release.yml` - publish to npm after the GitHub release, through trusted publishing (`id-token: write`, Node 24, npm 11.5.1+), skipped when the version is already on npm. - `package.json` - add `repository`, which npm trusted publishing and provenance require to match the GitHub repository. ### Changed - `README.md` - new hero and toolkit overview images; release section says how the CLI reaches npm; contributing section points to the real-source check for `odoo-workflow` grep commands; the workflow skill's version sources match 1.0.18 (`release.py`, short manifest versions ignored). - `lib/image/` - `hero.png` and `overview.png` replace `header-new.png`; `lib/image/README.md` records the prompts used to generate them.
-
v1.0.18
GitHub ↗
原版更新说明
### Release Description Hardens the `odoo-workflow` trace against invented Odoo symbols. The Step 1 commands were measured against Odoo 18 and 19 source with an AST ground truth: the old `_inherit` grep missed every multi-line `_inherit` list (9 `mail.thread` extensions per version), the field grep missed annotated definitions such as `res.partner.country_id`, and the view-inheritance grep only matched QWeb templates, never `ir.ui.view` records. The skill now fixes those commands, adds hook, delegation, path, anchor-provenance and rename-impact tracing, and gives the Context Brief explicit `NOT FOUND` / `UNCERTAIN` / `AMBIGUOUS` states with version-checked rules for load order, generated xmlids, magic fields, and Odoo 19's changed `_name` inference. ### Changed - `skills/odoo-workflow/SKILL.md` - Step 1 rewritten as a quoted command block (multi-line `_inherit`, chained `_name`, annotated fields, `_inherits`, method hooks, `ir.ui.view` and QWeb inheritors in either quote style, anchor nodes, rename impact); class-ownership and name-less class rules; `release.py` version source; Brief cell states and rules for redefined fields, paths, `depends`, override order, generated xmlids, magic fields, and xpath anchors; override the narrowest hook; fresh-install check in the definition of done. Examples no longer overlap the eval traps. - `skills/odoo-19.0/SKILL.md`, `skills/odoo-19.0/CLAUDE.md` - core references point to `odoo/orm/models.py`, `odoo/orm/fields.py`, `odoo/orm/decorators.py`. ### Added - `tests/test-skills.js` + `tests/fixtures/odoo_workflow/` - the Step 1 commands must appear verbatim in the skill and flag exactly the tagged fixture lines. - `tests/odoo-workflow-greps.sh` - runs the Step 1 commands against a real Odoo checkout (`ODOO_ROOT=...`) and checks hand-verified evidence. - `tests/evals/odoo-workflow/` - twelve anti-hallucination traps with fixture modules (`x_eval`, `x_eval_port`) in skill-creator `evals.json` format.
-
v1.0.17
GitHub ↗
原版更新说明
### Release Description Makes the Odoo review and tracer agents actually load from the Claude Code plugin. Both lived at `agents/<name>/SKILL.md`, which the plugin loader never scans, and `plugin.json` listed them under an `agents` key that replaces default discovery instead of adding to it - so `claude plugin details agent-skills` reported `Agents (0)` while all ten skills loaded fine. The agents are now flat files next to `planner.md`, discovered the same way. ### Fixed - `agents/odoo-code-review.md`, `agents/odoo-code-tracer.md` - moved out of per-agent directories (`git mv` from `<name>/SKILL.md`); the plugin loader only reads flat `.md` files in `agents/`. - `.claude-plugin/plugin.json` - dropped the `agents` key; an explicit list replaces default discovery and did not load these files. ### Changed - `tests/test-skills.js` - validates flat agent files as well as skill directories. - `README.md` - agent links and the project-structure tree follow the new paths.
-
v1.0.16
GitHub ↗
原版更新说明
### Release Description Fixes the Claude plugin marketplace, which could not be added at all in 1.0.15: `agent-skills` is reserved for official Anthropic marketplaces, so `claude plugin marketplace add` refused the manifest even though `claude plugin validate` passed it. The marketplace is now `unclecat-agent-skills`; the plugin id stays `agent-skills`. ### Fixed - `.claude-plugin/marketplace.json` — marketplace `name` renamed to `unclecat-agent-skills` (reserved-name rejection on `claude plugin marketplace add`). ### Changed - `README.md` — plugin section now shows the actual `marketplace add` / `install agent-skills@unclecat-agent-skills` commands.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- Comprehensive Odoo 17 development reference covering all major aspects from models to performance optimization
- High practical value for developers working with Odoo 17 or building custom modules
- Well-organized structure with clear navigation to specialized guides
亮点
- Extremely detailed and comprehensive trigger conditions covering error traces, file mentions, view errors, controllers, and business rules
- Clear boundary definition for when to use this skill in Odoo development contexts
亮点
- Excellent master index structure with well-organized table of contents
- Complete frontmatter with name, description, and file pattern matching
- Clear file structure documentation and external reference links
亮点
- Systematic workflow guidance including prerequisite skill usage and code review checks
- References to specific Odoo 17 source files and official documentation ensure accuracy
- Covers error handling and performance optimization best practices
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
- raw.githubusercontent.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。