Files
Odoo-Modules/fusion_accounting/fusion_accounting_migration/CLAUDE.md
gsinghpal 9ebf89bde2 changes
2026-05-16 13:18:52 -04:00

997 B

fusion_accounting_migration — Cursor / Claude Context

Purpose

Transitional sub-module that helps clients move from Odoo Enterprise accounting to Odoo Community + Fusion Accounting without losing data.

What it does

  • Safety guard: blocks uninstall of Enterprise accounting modules until the migration wizard has run (per-module flag in ir.config_parameter)
  • Migration wizard: shell that other fusion sub-modules extend with per-feature migration logic (Phase 0 ships only the shell)

Critical

  • The safety guard overrides button_immediate_uninstall AND module_uninstall on ir.module.module. Both paths must be guarded — UI uninstall, CLI uninstall, and API uninstall all go through one or the other.
  • Each fusion feature sub-module that replaces an Enterprise feature MUST extend the migration wizard's action_run_migration to add its own migration step AND set the corresponding fusion_accounting.migration.<module>.completed flag to True after running.