Step-by-step guide for migrating Odoo custom modules between versions (v14→v15→v16→v17). Covers API changes, deprecated methods, and view migration.
safe
self
Odoo Migration Helper
Overview
Migrating Odoo modules between major versions requires careful handling of API changes, deprecated methods, renamed fields, and new view syntax. This skill guides you through the migration process systematically, covering the most common breaking changes between versions.
When to Use This Skill
Upgrading a custom module from Odoo 14/15/16 to a newer version.
Getting a checklist of things to check before running odoo-upgrade.
Fixing deprecation warnings after a version upgrade.
Understanding what changed between two specific Odoo versions.
How It Works
Activate: Mention @odoo-migration-helper, specify your source and target versions, and paste your module code.
Analyze: Receive a list of breaking changes with before/after code fixes.
Validate: Get a migration checklist specific to your module's features.
✅Do: Test with --update=your_module on each version before pushing to production.
✅Do: Use the official Odoo Upgrade Guide to get an automated pre-upgrade analysis report.
✅Do: Check OCA migration notes and the module's HISTORY.rst for community modules.
✅Do: Run npm run validate after migration to catch manifest or frontmatter issues early.
❌Don't: Skip intermediate versions — go v14→v15→v16→v17 sequentially; never jump.
❌Don't: Forget to update version in __manifest__.py (e.g., 17.0.1.0.0).
❌Don't: Assume OCA modules are migration-ready; check their GitHub branch for the target version.
Limitations
Covers v14 through v17 only — does not address v13 or older (pre-manifest era has fundamentally different module structure).
The Odoo.sh automated upgrade path has additional steps not covered here; refer to Odoo.sh documentation.
Enterprise-specific modules (e.g., account_accountant, sign) may have undocumented breaking changes; test on a staging environment with Enterprise license.
JavaScript OWL component migration (v15 Legacy → v16 OWL) is a complex topic not fully covered by this skill.