Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)48k Β· #5343

odoo-migration-helper

Fungsinya

Panduan ini membantu Anda memperbarui program Odoo kustom dari satu versi ke versi lain (misalnya dari 14 ke 15, atau dari 16 ke 17). Panduan ini menunjukkan perubahan paling umum yang dapat merusak kode Anda beserta cara memperbaikinya.

Kapan dipakai

  • βœ“Saat Anda perlu meningkatkan program Odoo lama ke versi yang lebih baru.
  • βœ“Untuk mendapatkan daftar hal yang perlu diperiksa sebelum meningkatkan Odoo.
  • βœ“Untuk memperbaiki error yang muncul setelah peningkatan versi.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-migration-helper/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-migration-helper/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBantu saya memigrasikan modul saya dari Odoo 16 ke 17, dengan fokus pada perubahan visibilitas field dan 'chatter'.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Anda memberi tahu saya versi Odoo yang Anda gunakan (lama dan baru) dan menunjukkan kode program Anda. Saya akan menganalisis perubahan yang diperlukan dan memberikan panduan langkah demi langkah beserta perbaikannya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

  1. Activate: Mention @odoo-migration-helper, specify your source and target versions, and paste your module code.
  2. Analyze: Receive a list of breaking changes with before/after code fixes.
  3. Validate: Get a migration checklist specific to your module's features.

Key Migration Changes by Version

Odoo 16 β†’ 17

Topic Old (v16) New (v17)
View visibility attrs="{'invisible': [...]}" invisible="condition"
Chatter <div class="oe_chatter"> <chatter/>
Required/Readonly attrs="{'required': [...]}" required="condition"
Python minimum 3.10 3.10+
JS modules Legacy define(['web.core']) ES module import syntax

Odoo 15 β†’ 16

Topic Old (v15) New (v16)
Website published flag website_published = True is_published = True
Mail aliases alias_domain on company Moved to mail.alias.domain model
Report render _render_qweb_pdf() _render_qweb_pdf() (same, but signature changed)
Accounting move account.move.line grouping Line aggregation rules updated
Email threading mail_thread_id Deprecated; use message_ids

Examples

Example 1: Migrate attrs visibility to Odoo 17

<!-- v16 β€” domain-based attrs -->
<field name="discount" attrs="{'invisible': [('product_type', '!=', 'service')]}"/>
<field name="discount" attrs="{'required': [('state', '=', 'sale')]}"/>

<!-- v17 β€” inline Python expressions -->
<field name="discount" invisible="product_type != 'service'"/>
<field name="discount" required="state == 'sale'"/>

Example 2: Migrate Chatter block

<!-- v16 -->
<div class="oe_chatter">
    <field name="message_follower_ids"/>
    <field name="activity_ids"/>
    <field name="message_ids"/>
</div>

<!-- v17 -->
<chatter/>

Example 3: Migrate website_published flag (v15 β†’ v16)

# v15
record.website_published = True

# v16+
record.is_published = True

Best Practices

  • βœ… 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.
Pertanyaan umum

Versi Odoo apa saja yang dicakup panduan ini?

Panduan ini mencakup peningkatan antara Odoo versi 14, 15, 16, dan 17.

Apa itu 'chatter'?

'Chatter' adalah bagian di Odoo tempat pesan, pengikut, dan aktivitas untuk sebuah data ditampilkan. Cara menyertakannya dalam kode berubah antara versi 16 dan 17.

Apakah saya perlu meningkatkan versi satu per satu?

Ya, disarankan untuk meningkatkan dari satu versi ke versi berikutnya (misalnya 14 ke 15, lalu 15 ke 16) daripada melompati versi.

Detail

Deskripsi asli dari pembuat

Step-by-step guide for migrating Odoo custom modules between versions (v14β†’v15β†’v16β†’v17). Covers API changes, deprecated methods, and view migration.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#5343
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa