odoo-data-migration

Generate Odoo migration scripts for schema and data changes.

7|4|Updated May 19, 2026
One-click install
npx skills add https://github.com/Viindoo/odoo-mcp-client --skill odoo-data-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: odoo-data-migration
Source: https://github.com/Viindoo/odoo-mcp-client/tree/main/plugins/odoo-ai-agents/skills/odoo-data-migration
Command: npx skills add https://github.com/Viindoo/odoo-mcp-client --skill odoo-data-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openupgradelib, odoo-semantic-mcp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of Odoo migration scripts for schema or data changes, eliminating the need for manual script writing and reducing the risk of errors.

Core Features & Use Cases

  • Migration Script Generation: Automatically create pre-migrate and post-migrate scripts for schema and data changes.
  • Parameterized SQL: Ensures the scripts are safe to run and can be executed multiple times without issues.
  • Verification Checklist: Provides a comprehensive checklist for verifying the migration scripts before execution.
  • Use Case: For example, when a field needs to be renamed or a new field needs to be added, this Skill can generate the necessary migration scripts.

Quick Start

Generate a migration script for renaming the 'x_old_field' field to 'x_new_field' in the 'res.partner' model for the current module version.

Frequently Asked Questions about odoo-data-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Odoo migration scripts for schema and data changes?

You can generate Odoo migration scripts automatically by specifying schema or data changes like field renames and type changes. The Skill creates parameterized pre-migrate and post-migrate scripts using openupgradelib to ensure safe, repeatable execution.

What is OpenUpgrade and how does it handle Odoo data backfills?

OpenUpgrade is a Python library used to automate Odoo data migration. This Skill leverages it to handle data backfills, model splits, and module data transforms by generating targeted scripts that safely modify database records during version upgrades.

Do I need openupgradelib to automate Odoo model splits and merges?

Yes, openupgradelib is a required dependency for generating Odoo migration scripts. It provides the core functions needed to safely execute model splits, merges, and field type changes within your migration scripts.

What's the best way to rename a field in an Odoo migration script?

The best way to rename an Odoo field is to use an automated script generator that outputs parameterized SQL. This ensures the field rename operation is idempotent and prevents data loss or errors during repeated migration executions.

How do I verify Odoo migration scripts before execution?

You verify Odoo migration scripts using a comprehensive verification checklist provided after script generation. This checklist ensures the generated pre-migrate and post-migrate scripts handle data transforms correctly and are safe to run on your database.

Can I use this to create migration scripts for custom Odoo module data transforms?

Yes, you can generate migration scripts for custom Odoo module data transforms. The Skill handles module-specific data changes by creating parameterized scripts that safely transform existing records to match the new schema requirements.