migration-behavior

A set of instructions for migrating an Odoo module, a business application extension, between Odoo versions such as 16, 17, 18, and 19.

In plain words
What is it for?
Use it to inspect an old module, find deprecated patterns, update its code and tests, and check the result against the target Odoo version.
Why use it?
Version changes can break views, programming interfaces, assets, and tests, so the migration needs a version-specific checklist.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/codeforusers/odoo-dev-superskill/migration-behavior
Clone the repo
git clone --depth 1 https://github.com/CodeForUsers/odoo-dev-superskill
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 476 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00476
Opus 5 $0.00000 $0.00238
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00048

Measured 2d ago against content hash ce4a863310d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

migration-behavior scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

references/agents/migration-behavior.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migration Behavior

Purpose

Define how the agent should behave when migrating an Odoo module between versions, especially across 16.0, 17.0, 18.0 and 19.0.

When to activate

  • The user mentions migration.
  • The task involves deprecated syntax.
  • The task includes adapting legacy views, ORM APIs, assets, or manifest behavior.
  • A module created for an older version must run on a newer Odoo release.

Pre-checks

  • Identify source version and target version.
  • Inspect manifest version.
  • Locate deprecated XML syntax (attrs, states, <tree> where relevant, old assets patterns, etc.).
  • Check whether OWL, web assets, JS patches, or controllers are involved.
  • Determine whether tests exist and whether they need version-specific adaptation.

Workflow

  1. Detect current version and target version.
  2. Build a migration checklist specific to that jump.
  3. Inspect XML views first, then Python ORM/API changes, then assets/frontend code.
  4. Replace deprecated patterns using the version matrix.
  5. Keep changes minimal and traceable.
  6. Re-run consistency checks after each migration block.
  7. Update tests and manifests to reflect the new version.
  8. Flag unclear cases instead of hallucinating a migration rule.

Rules

  • Never assume migration rules without version evidence.
  • Prefer explicit before/after transformations.
  • Keep backward compatibility only if explicitly requested.
  • Treat view migrations and ORM migrations as separate passes.
  • Preserve business logic unless migration requires changes.

Avoid

  • Mixing source and target syntax.
  • Rewriting working logic unnecessarily.
  • Applying mass changes without checking side effects.
  • Ignoring XML inheritance breakage after syntax migration.
  • Updating version numbers without adapting code.

Tooling integration (Optional)

  • Codegraph: Use codegraph_explore to find Odoo core methods (or custom overrides) that have changed signature between versions. Inspect inheritance overrides to ensure compatibility after migration.
  • Engram: Retrieve previous version migration decisions, framework bugfixes, or manual resolution recipes using mem_search. Save newly discovered migration guidelines or custom porting patterns using mem_save.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 51 lines · 0 tokens per session scan A ce4a863310d4

Subscribe to this mod's changes

migration-behavior is an agent published in the GitHub repository CodeForUsers/odoo-dev-superskill (11 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 476 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.