Why it exists
AI assistants write plausible Odoo code. The failures that cost time are always the same kind:
- a field, method or xmlid that does not exist in the base addon (
sale.order.delivery_date,
sales_team.group_sale_admin);
- an xpath anchor that only another module's view adds, so the module fails to install;
- an override hooked on the public method instead of the hook that does the work;
- a stored field renamed without a migration, which silently drops the column and its data;
- a
sudo() nobody can audit;
- "tests pass" when the test run ran zero tests.
This repository gives the assistant three things against that:
| Part | What it does |
|---|
| Odoo reference packs (16.0, 17.0, 18.0, 19.0) | Version-specific guides for models, fields, views, OWL, security, controllers, reports, tests, migrations, translations and performance, plus an api-highlights.md list of what not to use in that version. |
| Odoo Workflow skill | A procedure the assistant follows for every Odoo change: find the runtime, trace the real source with a bundled helper, write a Context Brief where every claim has a file:line, implement the smallest change, then prove it on a throwaway database. |
| Agents | A code tracer and a scored code reviewer that share the same version and runtime rules. |
These are instructions and a read-only helper script, not an Odoo module or an enforcement system.
Results depend on the assistant, the model, and the checks you let it run.
With and without the skill: one real task
A user in an Odoo 18 project asks the following. As in most real setups, the Odoo source and
odoo.conf live outside the project directory, and nothing in the prompt says where:
In module x_eval, add a stored computed integer field x_age_days on sale.order.line: days since
the line's create_date.
We ran this task with the same model (Claude Opus 5.5), once with no skill and once with the
odoo-workflow skill, and had a separate grader check both answers against the Odoo 18 source
without knowing which was which. Both noticed that a stored compute on create_date never
refreshes and added a daily cron. The difference is in what each one knew and what it would have
shipped:
| Without the skill | With odoo-workflow |
|---|
| Odoo version | Guessed: "I assumed Odoo 18 (or 19)" | Found 18.0 in the core's odoo/release.py, through the odoo.conf in a sibling directory |
| Source read | 3 tool calls, no file:line anywhere | 26 tool calls, a Context Brief of 13 cited rows |
Why create_date exists on the line | Not explained | Cited: automatic log field from odoo/models.py:288 |
| Upgrading a database that already has order lines | Noted that -u recomputes every line in Python | Bumps the version to 1.1 and adds migrations/1.1/pre-migrate.py that fills the column in SQL, so -u does not recompute millions of rows |
| Tests | -u x_eval --test-tags /x_eval on an unnamed database, which runs 0 tests and still exits 0 if x_eval is not installed there | Installs on a throwaway scratch_x_eval database and requires the log line 0 failed, 0 error(s) of N tests with N > 0 |
| Grader verdict | 2 of 3 expectations | 3 of 3, preferred |
An excerpt of the Context Brief the skill produced: