odoo-17 — скилл для Claude Code: справочник по разработке Odoo 17
Скилл-справочник по Odoo 17: модели и ORM, XML-вьюхи, OWL, QWeb-отчёты, права доступа, миграции. Пригодится, когда правишь кастомный аддон или разбираешь трейсбек.
npx skills add unclecatvn/agent-skills --skill odoo-17 -a claude-code
npx skills add unclecatvn/agent-skills --skill odoo-17.0 -a claude-codeЧто делает odoo-17
Скилл работает как индекс: в SKILL.md лежит таблица тем, а сами разборы — в references/, по файлу на тему. Внутри восемнадцать гайдов: actions, decorators, controllers, data, development, fields, manifest, migration, mixins, model, OWL, performance, reports, security, testing, transactions, translation, views. Агент открывает нужный по задаче, а не читает всё подряд.
Гайды построены на разборе исходников Odoo 17 — odoo/models.py, odoo/fields.py, odoo/api.py, odoo/http.py, odoo/exceptions.py. Есть отдельный references/api-highlights.md с проверками перед написанием кода: пункты с ❌ показывают, что в Odoo 17 уже не используют. Поле globs (**/*.{py,xml,csv,js,ts,css,scss}) подтягивает скилл, когда в работе всплывают эти расширения.
Автор советует поставить рядом скилл odoo-workflow — он ведёт трассировку по реальному исходнику и собирает Context Brief с file:line. Соглашения внутри гайдов помечены как рекомендательные: если стиль существующего стабильного аддона им противоречит, приоритет у поведения рантайма Odoo 17, потом у стиля аддона, и только затем у конвенции. Это стоит держать в голове при рефакторинге чужого кода — скилл не будет навязывать переписывание рабочего модуля.
Какие задачи решает
- разобрать трейсбек из кастомного аддона и найти причину
- написать домен и
searchдля выборки записей по бизнес-правилу - собрать QWeb-отчёт с PDF-выводом и своим форматом бумаги
- настроить ACL, record rules и группы для новой модели
- перевести модуль на новую версию и перенести данные
Примеры запросов агенту
- посмотри этот трейсбек из addons/my_module и скажи, что сломалось
- добавь compute-поле в модель sale.order и пересчитай его через @api.depends
- почему эта форма падает с ошибкой в XML-вьюхе? проверь по гайду views
Как установить odoo-17
1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-17 -a claude-codenpx skills add unclecatvn/agent-skills --skill odoo-17.0 -a claude-code2Вручную: положить файлы
~/.claude/skills/odoo-17.0/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/odoo-17.0/
1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-17.0 -a codex2Вручную: положить файлы
.agents/skills/odoo-17.0/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-17.0 -a cursor2Вручную: положить файлы
.cursor/skills/odoo-17.0/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install unclecatvn/agent-skills odoo-17.02Вручную: положить файлы
.github/skills/odoo-17.0/SKILL.md1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-17.0 -a gemini-cli2Командой платформы
gemini skills install https://github.com/unclecatvn/agent-skills --path skills/odoo-17.0Вручную: положить файлы
.devin/skills/odoo-17.0/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-17.0 -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о odoo-17
Как установить odoo-17 в Claude?
Через CLI скиллов: npx skills add unclecatvn/agent-skills --skill odoo-17 -a claude-code. Второй вариант — тот же репозиторий с именем odoo-17.0: npx skills add unclecatvn/agent-skills --skill odoo-17.0 -a claude-code. После установки файл лежит в ~/.claude/skills/odoo-17.0/SKILL.md.
Что делает скилл odoo-17?
Даёт агенту справочник по разработке Odoo 17: ORM и модели, XML/CSV-данные и вьюхи, OWL-компоненты, QWeb-отчёты, права доступа, cron и server actions, миграции, тесты, i18n и производительность. Агент читает нужный гайд из references/ под конкретную задачу.
Нужен ли скилл odoo-workflow вместе с ним?
Автор советует поставить его рядом: odoo-workflow трассирует реальный исходник и собирает Context Brief с file:line. Без него odoo-17 всё равно работает как справочник по гайдам.
Исходный текст
SKILL.md · MIT
---
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 implementation
- `odoo/fields.py` - Field types
- `odoo/api.py` - Decorators
- `odoo/http.py` - HTTP layer
- `odoo/exceptions.py` - Exception types
- `odoo/tools/translate.py` - Translation system
- `odoo/addons/base/models/res_lang.py` - Language model
- `addons/web/static/src/core/l10n/translation.js` - JS translations
## External Documentation
- [Odoo 17 Official Documentation](https://github.com/odoo/documentation/tree/17.0)
- [Odoo 17 Developer Reference](https://github.com/odoo/documentation/blob/17.0/content/developer/reference/backend/orm.rst)
- [Odoo 17 Coding Guidelines](https://raw.githubusercontent.com/odoo/documentation/17.0/content/contributing/development/coding_guidelines.rst)
© unclecatvn · MIT · unclecatvn/agent-skills