mna-module
/mna-module
Scaffold an Odoo module that matches the target version, with no leftover attrs, tree or name_get. Use for "create a module", "new addon", "scaffold this", "I need a model for X", or any request to start custom Odoo development.
- Author
- najjarinelb ↗
- Repository
- odoo-agent-skills ↗
- Licence
- MIT
- Last repository change
- 06.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 06.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scaffold.py
What it does and when to use it
Scaffold an Odoo module that matches the target version, with no leftover attrs, tree or name_get. Use for "create a module", "new addon", "scaffold this", "I need a model for X", or any request to start custom Odoo development.
Triggers from the description
Original author description
Scaffold an Odoo module that matches the target version, with no leftover attrs, tree or name_get. Use for "create a module", "new addon", "scaffold this", "I need a model for X", or any request to start custom Odoo development.
How it works
- Before you write
- What the version changes
- Rules for the code itself
- After scaffolding
- The gate
SKILL.md preview
---
name: mna-module
description: >-
Scaffold an Odoo module that matches the target version, with no leftover
attrs, tree or name_get. Use for "create a module", "new addon", "scaffold
this", "I need a model for X", or any request to start custom Odoo
development.
---
# mna-module
A module scaffolded for the wrong version installs cleanly and then breaks in a view nobody opens
until a client does. The version is the first question, not a detail.
```bash
python3 scaffold.py --name stock_alert --version 18.0 --prefix mna_ --model stock.alert
python3 scaffold.py --name stock_alert --version 16.0 --prefix mna_ --dry-run
```
## Before you write
1. Read `~/.claude/odoo/context.md` for the version, the module prefix, the author line and the
licence. If it does not exist, **ask for the target version first.** Do not pick a default.
2. Ask what the module is for in one sentence. A module that cannot be described in one sentence is
two modules.
3. Ask whether this extends an existing model or adds a new one. Extending is almost always the
right answer and produces a quarter of the code.
## What the version changes
`scaffold.py` writes the correct form for the target. The differences that actually bite:
| | 16.0 | 17.0 | 18.0 and later |
|---|---|---|---|
| View conditions | `attrs="{'invisible': [...]}"` | plain `invisible="expr"` | plain `invisible="expr"` |
| List view tag | `<tree>` | `<tree>` | `<list>` |
| Action view mode | `tree,form` | `tree,form` | `list,form` |
| Display name | `name_get()` | `_compute_display_name` | `_compute_display_name` |
`attrs` and `states` were removed in 17.0. `<tree>` became `<list>` in 18.0. Writing the old form
for a new version is the single most common mistake when porting, and it is silent until render.
## Rules for the code itself
- Extend through inheritance. Never edit a core module.
- `self.env.company`, not `self.env.user.company_id`.
- `t-out` in QWeb, never `t-esc` or `t-raw`.
- Odoo exceptions only: `ValidationError`, `UserError`. Never a bare `Exception`.
- `_logger`, never `print`.
- Security first, not last. A module without `ir.model.access.csv` fails for every user who is not
an administrator, and that is discovered in UAT by a client.
- No inline comments. If a line needs explaining, the name is wrong.
## After scaffolding
Install it and read the log before writing any logic:
```bash
odoo-bin -d <db> -i <prefix><name> --stop-after-init
```
An install that prints a warning is not an install that worked. Read it.
## The gate
This writes files on disk and nothing else. It does not install, it does not touch a database, and
it does not commit. Every run ends with the install command and the question: **did the log come
back clean?**
Files in this package (2)
- SKILL.md 3 KB
- scaffold.py 8 KB
Versions
The database has no other skills named mna-module.
Database snapshot: 13.11.2026 · package version a8cf750f1340 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100mna-upgrade
Scan a custom Odoo module for code that the target version removed, before the upgrade rather than during it. Use for "upgrade this module", "migrate to v18", "port this to 19", "what breaks if we upgrade", or a version jump on any custom addon. - 100mna-diagnose
Produce the read-only psql and shell commands that prove what is actually wrong in an Odoo database before any code is written. Use for "why is this wrong", "the numbers don't match", "this module won't install", "it's slow", a pasted traceback, or any Odoo bug whose cause is not yet known. - 100odoo-development
MUST be loaded when ANY Odoo development task is detected. CRITICAL: Claude MUST use this skill for ALL tasks involving: - "odoo", "module", "model", "view", "field", "OWL", "manifest" - ANY mention of Odoo versions (14, 15, 16, 17, 18, 19) - "create odoo module", "generate odoo… - 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. - 90develop
Default for any Odoo work in this Odoo 20.0 tree even when no version is named; takes priority over generic odoo-* skills (17-19 advice such as ir.model.access.csv, useState, SavepointCase is wrong in 20). Entry point for any Odoo 20 (20.0) development task (new module,… - 100odoo-start-here
Use when the user asks to connect Claude to Odoo, to install or set up an Odoo plugin, or to read or change data in Odoo, or asks why Odoo tools are missing, and no Odoo tool is available or loadable in the conversation. Says what this edition contains and how to get help. Do…