Skip to content

unclecatvn/agent-skills / skills/odoo-17.0

odoo-17

Unverified

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.

references/api-highlights.md

View on GitHub
---
name: odoo-17-api-highlights
description: Version-distinguishing API patterns for Odoo 17. Read this when the target version is 17.0 so the reviewer/tracer applies the right rules.
---

# Odoo 17 API Highlights

Use this file as the version-specific ruleset when the resolved Odoo version is `17.0`. It supplements — not replaces — the general review checklist.

## Views

- **List view tag: `<tree>`** — Odoo 17 still uses `<tree>`. The rename to `<list>` happens in 18.
  - Applies everywhere: view records, `xpath` expressions, action `view_mode="tree,form"`.
- **Legacy `attrs=` / `states=` are rejected by the view validator in 17.** Use direct-expression attributes:
  - `attrs="{'invisible': [('state','=','done')]}"` → `invisible="state == 'done'"`
  - `attrs="{'readonly': [('locked','=',True)]}"` → `readonly="locked"`
  - `states="draft,confirmed"` → `invisible="state not in ('draft','confirmed')"`
- Reference: `references/odoo-17-view-guide.md`.

## Fields

- **Aggregation parameter: `group_operator=`** (numeric fields default to `'sum'`). The parameter is renamed to `aggregator=` in later versions — in v17 source, `aggregator=` will fail or be silently ignored.
- Reference: `references/odoo-17-field-guide.md`.

## Decorators

- **`@api.model_create_multi`** is required when overriding `create()`. Do not rely on the `@api.model` fallback.
- **`@api.ondelete(at_uninstall=False)`** is available (since 15) and preferred over overriding `unlink()` for validation.
- Reference: `references/odoo-17-decorator-guide.md`.

## Frontend

- OWL 2.8 is the frontend framework version shipped with Odoo 17.

## Quick review checks (v17-specific)

- ❌ `<list>` tag (belongs in 18+) — flag as wrong version.
- ❌ `attrs="..."` / `states="..."` — must be rewritten to direct expressions.
- ❌ `aggregator=` — use `group_operator=` in 17.
- ✅ `@api.model_create_multi` on `create()` overrides.
- ✅ `@api.ondelete` for delete validation.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall