21 lines
997 B
Markdown
21 lines
997 B
Markdown
# 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.
|