This commit is contained in:
gsinghpal
2026-05-16 13:18:52 -04:00
parent 191a9c82be
commit 9ebf89bde2
1080 changed files with 0 additions and 1197 deletions

View File

@@ -0,0 +1,20 @@
# 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.