/odoo-agent-pro-kit:odoo_20_coding_standardfrom Odoo Agent Pro Kit
Odoo 20.0 coding standards for models, views, security (ir.access), mail tracking, icons, routes, external API, and tests. Use when developing or migrating Odoo 20 modules.
Ships in Odoo Agent Pro Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write Odoo 20.0 code that installs cleanly and survives upgrades. Everything in
Odoo19CodingStandard still applies unless this file overrides it — load that skill
too for the full view/controller/RNG/SCSS/SQL-computed-field guidance.
odoo/[email protected] d3236ca5c7052e892a097b007c38b9501888e406 (2026-09-24),
odoo/release.py → version_info = (20, 0, 0, FINAL, 0, ''); re-verified at 87a1773b
(2026-09-25). Runtime minimums: Python ≥ 3.12, PostgreSQL ≥ 16 (MIN_PY_VERSION,
MIN_PG_VERSION).odoo/[email protected] content/developer/reference/backend/orm/changelog.rst.
20.0 also contains every Odoo Online 19.1–19.4 change, so a 19.0 → 20.0 migration crosses
all of them.skills/ (odoo-guidelines, odoo-review,
odoo-security, odoo-web-guidelines). Use them for review, security audit, and generic
guidelines; this skill only adds 20.0 migration specifics and the kit's lifecycle rules.<list> not <tree>; no attrs=/states= (ValidationError "Since 17.0 …").@http.route(type='jsonrpc'); type='json' is a deprecated alias (odoo/http/routing_map.py).res.groups.privilege_id (not category_id); no expand= on search-view <group>.models.Constraint instead of _sql_constraints; self.env.context not self._context.'type': 'consu', 'is_storable': True.ir.accessir.model.access and ir.rule are gone. Source: odoo/addons/base/models/ir_access.py.
security/ir.access.csv (list it in __manifest__.py data). Header, exactly as in
standard addons:
id,name,model_id,group_id/id,operation,domain
access_my_model_user,my.model user,my.model,base.group_user,cru,
access_my_model_manager,my.model manager,my.model,my_module.group_manager,crud,
my_model_company_rule,my.model multi-company,my.model,,crud,"[('company_id', 'in', company_ids)]"
model_id is the model's technical name (e.g. sale.order), not an model_* xmlid.operation is a CRUD subset string: c,r,u,d in that order (crud, cru, ru, r …).domain optional (empty = all records). Same eval context as old rules
(user, company_ids, company_id).kind is computed: group set → permission (grants), group empty → restriction
(global filter every user must satisfy — replaces global ir.rule).ir.rule becomes a permission row with a domain on that group.with_user(...) and check_access(...); don't query ir.model.access.Migration: run Odoo's own rewriter, then review every WARNING/ERROR line it prints:
./odoo-bin upgrade_code --script 19.4-00-ir-access --addons-path=<custom_addons> --dry-run
./odoo-bin upgrade_code --script 19.4-00-ir-access --addons-path=<custom_addons>
(odoo/upgrade_code/19.4-00-ir-access.py merges ACL + rules; it limits rule operations to
those granted by the module's ACLs and warns on orphan rules.) Kit lint: L7/L8 block.
mailmail.tracking.value and mail.message.tracking_value_ids now live in the new
mail_tracking module (addons/mail_tracking/, depends only on mail). Tracking messages
are rendered on the fly.tracking_value_ids must add 'mail_tracking' to depends
or stop relying on stored values. tracking=True on fields still works. Kit lint: L9 warn.addons/web/static/src/libs/materialsymbols/; core web XML no
longer uses fa fa-*. Font Awesome stays for compatibility — prefer Material Symbols in new
templates. Kit lint: L10 warn./xmlrpc, /xmlrpc/2, /jsonrpc still exist but are deprecated since 19, removal
scheduled for Odoo 22 (addons/rpc/controllers/__init__.py). New integrations use
POST /json/2/<model>/<method> with an API key (addons/rpc/controllers/json2.py).upgrade_code does NOT fix (found in a live 19→20 migration)These made real 19.0 modules fail to install or fail at runtime on 20.0 even after running
19.4-00-ir-access. The kit's hook lint blocks each one on 20:
toggle_active / boolean_button removed. BaseModel.toggle_active no longer exists
and there is no boolean_button widget ("toggle_active is not a valid action on …"). Replace the
archive stat button with <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/> + <field name="active" invisible="1"/>; call action_archive() /
action_unarchive() in Python.t-esc forbidden in view arch. Kanban/card arch accepts only t-out, t-set,
t-value, t-if/elif/else, t-foreach/as/key, t-att*, t-call, t-name, t-debug,
t-translation (ir_ui_view.py). The owl3 script rewrites t-esc only under /static/, so
fix views/*.xml by hand.Registry._init removed. Use not self.env.registry.ready (or the install_mode /
module context keys). Fails only at runtime (AttributeError), so lint is the early warning.card view. project.view_task_kanban (and 6 other
standard kanbans) now reference card_id="%(…_card)d"; the fields/templates live in e.g.
project.view_task_card. Inherit the card view, not the kanban, or you get
"Element '' cannot be located in parent view".version must be 20.0.x. A 19.0.x manifest is silently marked
installable=False ("incompatible version") and -i installs nothing (0 tests run, exit 0).87a1773b)ir.config_parameter.get_param() / set_param() removed (19.1 new API; runtime
AttributeError, verified live). Use the typed
API: get_str/get_int/get_float/get_bool(key, default) and set_str/set_int/set_float/set_bool.
Data files: <function model="ir.config_parameter" name="set_str" eval="('key', 'value')"/>.
No upgrade_code script rewrites this — 192 Odoo 19 source files needed it. The lint only fires
when the receiver is an ir.config_parameter chain or a variable assigned from one, so
email.message.get_param('charset') is not flagged.Model._table_query removed. SQL-view models (_auto = False) define
@property def _table_sql(self) -> SQL returning the parenthesised query, e.g.
SQL("(%s %s %s)", self._select(), self._from(), self._where()) (see sale/report/sale_report.py).ir.attachment.datas removed. Only raw (bytes) and db_datas remain. A 'datas'
value in create/write is silently dropped — the attachment is created with
file_size = 0 and no error (verified live on 20.0). Use {'raw': pdf_bytes}; in XML data use
<field name="raw" type="base64" file="..."/>. Odoo removed 45 Python and 14 XML uses; the
Enterprise social_demo/data/social_demo.xml still has one (upstream bug).BinaryValue (odoo/tools/binary.py). Writes accept a base64
str (RPC), a BinaryValue, or {'content', 'filename'}; raw bytes raise
TypeError: … use BinaryValue instead of bytes. Odoo's own fix:
from odoo.tools import BinaryBytes → rec.image_1920 = BinaryBytes(raw_bytes). Reads return
{'content': <base64>, 'filename'?, 'size'}, not a bare base64 string — update integration and
test scripts that compare binary values. (Lint L17 warns, matching binary-like field names.)request no longer belongs in model code (19.4); use self.env.website etc. Standard ir_http
models still import it, so this is guidance, not a lint rule."access" for access rules on a comodel (19.3), simpler
Model.concat / Model.union (19.3), Field.compute_sql for groupable/sortable computed
fields (19.1), thread-safe ormcache (19.4, script 19.4-00-ormcache-on-transaction), h11-based
HTTP server (19.4), field copy functions ("(copy)" suffix for char name), manifest strings
translated in the module's own .po files (20.0).ai_mcp (OEEL-1, depends on ai, auto-install) serves POST /mcp (auth='bearer', API key with
MCP scope, or OAuth with dynamic client registration) and implements initialize, tools/list,
tools/call. Tools are ir.actions.server records with use_in_mcp; defaults are get models,
get fields, search, read_group, and an initial-context tool. Community 20.0 ships no ai* module,
so Community projects keep using the kit's odoo_mcp (JSON-RPC / JSON-2) discovery tools.
odoo/upgrade_code/: 17.5-01-tree-to-list, 18.1-00-sql-constraint, 18.1-02-route-jsonrpc,
18.2-00-l10n-translate, 18.3-00-l10n-fiscal-position-taxes, 18.5-00-deprecated-properties,
18.5-00-domain-dynamic-dates, 18.5-00-no-tax-tag-invert, 19.1-00-t-call,
19.3-00-account-groups, 19.3-00-account-report-foldable, 19.3-00-base64-in-xml,
19.4-00-ir-access, 19.4-00-ormcache-on-transaction, 19.5-00-tuple-rec_names_search,
owl3-migration. Each is best-effort — re-run the module's tests
afterwards. See OdooTools20 for the pitfalls observed running them (they also rewrite Odoo's own
addons; --from 19.0 can crash in 19.3-00-account-groups; exit 1 means "files changed").
Reference the file/SHA you verified, run the kit's /rules-check-drift, and never mark a 20.0
migration done without an install + test run in the Docker Sandbox (sandboxctl module … test).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vperfectcs/odoo-agent-pro-kit --plugin odoo-agent-pro-kit31 skills in this plugin
/agent_browser_automationBrowser automation for Odoo web testing, form filling, screenshots, documentation, and frontend validation. Use when testing Odoo web pages, creating module screenshots, validating forms, or automating browser interactions for Odoo 17/18/19./odoo_commanding_systemSlash command router providing three lifecycle commands for Odoo custom app development: /plan-analysis (requirements & PRD generation), /start-coding (task-loop with backend testing), /testing (frontend UI testing & documentation). Version-aware (17|18|19), IDE/CLI agnostic. Works from VS Code, Antigravity, Cursor, or terminal./docker-sandbox-multi-cli-adapterManage multiple coding-agent CLIs (Codex, Claude, Hermes, Gemini) in Docker Sandbox phases for Odoo development./docker-sandbox-operationsConfigure, migrate, operate, validate, benchmark, upgrade, roll back, and release the Odoo 17/18/19 Docker Sandbox runtime. Use for Docker Sandbox onboarding, platform setup, local-to-sandbox migration, session lifecycle, release acceptance, capacity measurement, or troubleshooting in this repository./excalidraw-diagramCreate Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts./odoo_17_coding_standardOdoo 17.0 coding standards for models, views, security, constraints, and performance. Use when developing Odoo 17 modules to ensure maintainable, upgrade-safe code.Other plugins' skills for the same job