odoo-17

Odoo 17 Development Reference: covers Python models and ORM (search, domains, read_group, computed fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACLs, record rules, user groups), scheduled actions and server actions, module migration and upgrades, testing, internationalization (i18n), and performance tuning. Use this when working with Odoo 17 or custom modules — including cases where users paste error stacks, mention addons/ or __manifest__.py, describe form/list/kanban/XML errors, HTTP controllers, or model business rules (feature development, bug fixes, refactoring, or code review). Also includes writing and reviewing CSS/SCSS assets in Odoo modules.

Last repository push
GitHub Stars
154
Forks
69
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "odoo-17" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-36050b9069c795595375c8f844fae7e9ecb0c1bda5afb980a62fa35a583ed514. Verify the upstream source and version against https://github.com/unclecatvn/agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Odoo 17 Development Reference: covers Python models and ORM (search, domains, read_group, computed fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACLs, record rules, user groups), scheduled actions and server actions, module migration and upgrades, testing, internationalization (i18n), and performance tuning. Use this when working with Odoo 17 or custom modules — including cases where users paste error stacks, mention addons/ or __manifest__.py, describe form/list/kanban/XML errors, HTTP controllers, or model business rules (feature development, bug fixes, refactoring, or code review). Also includes writing and reviewing CSS/SCSS assets in Odoo modules.

0 Downloads

Introduction source: third_party · unclecatvn · 0.0.1 Reference

SkillPi interpretation

Tasks
Master index for all Odoo 17 development guides. Read the appropriate guide from `references/` based on your task.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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 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

Version history

  1. v1.0.20 GitHub ↗
    Original release notes

    ### 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.

  2. v1.0.19 GitHub ↗
    Original release notes

    ### 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.

  3. v1.0.18 GitHub ↗
    Original release notes

    ### 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.

  4. v1.0.17 GitHub ↗
    Original release notes

    ### 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.

  5. v1.0.16 GitHub ↗
    Original release notes

    ### 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.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 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
Trigger Precision95/100

Highlights

  • 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
Structure and Standards94/100

Highlights

  • 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
Execution Reliability90/100

Highlights

  • 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
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.