odoo-guidelines
/odoo-guidelines
House rules for Odoo addon code: module structure, manifest, Python/ORM, fields, controllers, XML views and data, QWeb reports, access rights and record rules, performance, tests. Use when writing or reviewing any file in an Odoo addon outside static/ (for the JavaScript, Owl templates and SCSS under static/, see odoo-web-guidelines).
- Author
- mediafish-agency ↗
- Repository
- odoo20-claude-toolkit ↗
- Licence
- LGPL
- Last repository change
- 07.11.2026
Assessment and security
- Files in this package
- 15
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 07.11.2026, without references to retired models or APIs.
LGPL, otwarta.
What it does and when to use it
House rules for Odoo addon code: module structure, manifest, Python/ORM, fields, controllers, XML views and data, QWeb reports, access rights and record rules, performance, tests. Use when writing or reviewing any file in an Odoo addon outside static/ (for the JavaScript, Owl templates and SCSS under static/, see odoo-web-guidelines).
Original author description
House rules for Odoo addon code: module structure, manifest, Python/ORM, fields, controllers, XML views and data, QWeb reports, access rights and record rules, performance, tests. Use when writing or reviewing any file in an Odoo addon outside static/ (for the JavaScript, Owl templates and SCSS under static/, see odoo-web-guidelines).
How it works
SKILL.md has no level-two headings · 37 lines, 359 words
SKILL.md preview
--- name: odoo-guidelines description: >- House rules for Odoo addon code: module structure, manifest, Python/ORM, fields, controllers, XML views and data, QWeb reports, access rights and record rules, performance, tests. Use when writing or reviewing any file in an Odoo addon outside static/ (for the JavaScript, Owl templates and SCSS under static/, see odoo-web-guidelines). --- # Odoo addon guidelines House rules for code in Odoo addons (`addons/*` and `odoo/addons/*`). Everything an addon ships under `static/` has its own skill: `odoo-web-guidelines`. Guidelines are grouped by domain, one file per domain in `guidelines/`, one section per guideline. No rule outranks another. Read the sections that match the files you are touching instead of loading whole files. | Guideline | Read it when | | --- | --- | | [Module structure and file naming](guidelines/module_structure.md#module-structure-and-file-naming) | creating or moving files in an addon, or adding a module | | [Manifest](guidelines/manifest.md#manifest) | touching `__manifest__.py` | | [Imports](guidelines/python.md#imports) | writing Python anywhere in an addon | | [Naming and model layout](guidelines/python.md#naming-and-model-layout) | naming a model, field, method or variable; laying out a model class | | [Translate only static literals](guidelines/python.md#translate-only-static-literals) | user-facing strings in Python | | [Recordsets, domains and context](guidelines/orm.md#recordsets-domains-and-context) | reading records, building domains, passing context | | [Computes, onchange and constraints](guidelines/orm.md#computes-onchange-and-constraints) | computes, onchange, constraints, indexes, `create` overrides | | [End `_order` on a unique field](guidelines/orm.md#end-_order-on-a-unique-field) | setting a model's `_order`, or fixing records that come back in a random order | | [Methods and extension points](guidelines/orm.md#methods-and-extension-points) | adding a model method, or one another module will override | | [Transactions and exceptions](guidelines/orm.md#transactions-and-exceptions) | cursors, commits, savepoints, `try`/`except` | | [Fields](guidelines/fields.md#fields) | declaring or modifying field definitions | | [Controllers](guidelines/controllers.md#controllers) | touching `controllers/` or `@route` | | [Views, actions and data records](guidelines/xml.md#views-actions-and-data-records) | touching `views/`, `data/`, or any XML records | | [Anchor view inheritance on names, never on position](guidelines/xml.md#anchor-view-inheritance-on-names-never-on-position) | extending or overriding an existing view | | [QWeb PDF reports](guidelines/reports.md#qweb-pdf-reports) | report templates or `_get_report_values` | | [Access rights](guidelines/security.md#access-rights) | touching `security/` (`ir.access.csv`, groups) | | [Batch ORM calls](guidelines/performance.md#batch-orm-calls) | ORM calls (`create`/`search*`/aggregates) inside a loop | | [Performance conventions](guidelines/performance.md#performance-conventions) | code that loops over records or filters query results | | [Tests](guidelines/tests.md#tests) | touching `tests/` | | [Plain ASCII punctuation in comments and messages](guidelines/comments.md#plain-ascii-punctuation-in-comments-and-messages) | writing a comment, a docstring, a user-facing string, or a commit message | | [Changes in a stable version](guidelines/stable.md#changes-in-a-stable-version) | any change targeting a released branch rather than master | To add or restructure a guideline, follow [AUTHORING.md](AUTHORING.md).
Files in this package (15)
- AUTHORING.md 2 KB
- SKILL.md 4 KB
- guidelines/comments.md 2 KB
- guidelines/controllers.md 1 KB
- guidelines/fields.md 2 KB
- guidelines/manifest.md 1 KB
- guidelines/module_structure.md 1 KB
- guidelines/orm.md 4 KB
- guidelines/performance.md 2 KB
- guidelines/python.md 4 KB
- guidelines/reports.md 1 KB
- guidelines/security.md 1 KB
- guidelines/stable.md 2 KB
- guidelines/tests.md 2 KB
- guidelines/xml.md 3 KB
Versions
The database has no other skills named odoo-guidelines.
Database snapshot: 13.11.2026 · package version 95ef99ea1f9d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 81odoo-web-guidelines
House rules for the web framework code of Odoo addons: the JavaScript, Owl templates and SCSS in static/src/ and static/tests/ of any addon (community, enterprise, or custom). Use when writing, reviewing, or moving files under static/ in an Odoo addon. - 95odoo-18
Odoo 18 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… - 95odoo-17
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… - 100odoo-specialist
Use for any Odoo question — module development, ORM, XML views, QWeb, security rules, multi-company, accounting, manufacturing, deployment on Odoo.sh. Assumes Fabien Pinckaers (Odoo founder) persona. Enforces module structure and no-hardcoded-ID rules via odoo-guard. Spawns… - 90odoo-review
Review Odoo addon code against the house rules, dispatching each changed file to the matching odoo-guidelines, odoo-web-guidelines, and odoo-security material. Use when reviewing a diff, commit, PR, or module. - 90odoo_web_agent
Persona for Odoo 17/18/19/20 backend UI work - XML views, actions and menus, QWeb reports, OWL components, fields widgets, assets. Use when /plan-analysis or /start-coding routes an OWL/frontend task, or a task is mainly views and client-side code.