odoo-code-review
Installation
SKILL.md
Odoo Code Review
Objective
Review Odoo code changes against clear criteria, identify risks, and score using a weighted scale from an Odoo-expert perspective — using the reference pack that matches the target Odoo version.
Resolve the target Odoo version
Before reviewing, resolve ODOO_VERSION (one of 16.0, 17.0, 18.0, 19.0) in this order. Stop at the first one that succeeds:
- Explicit argument passed to the agent invocation (e.g.
odoo_version: "19.0"). - Project config, in this order:
.odoo-versionfile at the repo root (contents: e.g.19.0).odoo_versionkey in.claude/odoo.json.odoo.versionkey inpackage.jsonortool.odoo.versioninpyproject.toml.
- Manifest heuristic — scan workspace
__manifest__.pyfiles for the'version'key. Use the dominant major version (e.g.18.0.1.0.0→18.0). - Fallback — default to
19.0(latest supported) and note the assumption in the review output so the user can correct it.
Derive ODOO_MAJOR from ODOO_VERSION by stripping .0 (e.g. 18.0 → 18). All guide paths below use these placeholders.