User reported two UX problems after the Enterprise uninstall:
1. Each Fusion sub-module showed up as its own standalone app in the
launcher (Bank Reconciliation, Financial Reports, Asset Management,
Customer Follow-ups, Fusion AI). Should look like ONE Accounting app.
2. Clicking the 'Fusion Accounting' app still opened the migration
wizard even though Enterprise had been uninstalled and there was
nothing to migrate.
Fix:
- Move all Fusion sub-module roots under the Community account.menu_finance
hierarchy:
* Bank Reconciliation \u2192 Accounting > Bank Reconciliation
* Asset Management \u2192 Accounting > Asset Management
* Financial Reports \u2192 Reporting > Financial Reports
* Follow-ups \u2192 Customers > Follow-ups
* Fusion AI \u2192 Configuration > Fusion AI
* Migrate from Ent. \u2192 Configuration > Migrate from Enterprise
- Rename Community's 'Invoicing' top-level menu to 'Accounting' (what
Enterprise's accountant module did). Set the Fusion icon on it. This
rename lives in the meta-module so it only fires when the full suite
is installed.
- Add second computed group 'group_fusion_show_when_enterprise_present'
(inverse of the existing 'absent' group). Migration menus are gated
by this group, so they auto-hide once Enterprise is uninstalled.
- _fusion_recompute_coexistence_group now maintains both groups in lockstep.
- Meta-module now also depends on l10n_ca, hr_payroll, ocr, documents
(the Phase 6/7 sub-modules) for one-click full-suite install.
- Fusion AI menu's old parent ('accountant.menu_accounting') was deleted
with the Enterprise uninstall \u2014 reparented under Configuration.
Result: single 'Accounting' top-level menu containing the standard
V19 Community structure (Dashboard / Customers / Vendors / Accounting /
Reporting / Configuration), with all Fusion features slotted into the
appropriate sub-section. Verified live on westin-v19: 6 separate
Fusion top-level menus collapsed to 1; coexistence groups recomputed
(absent=10 users, present=0 users); 604/604 tests pass.
Version bump: all touched modules \u2192 19.0.1.1.0.
Made-with: Cursor
56 lines
2.6 KiB
XML
56 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_fusion_migration_wizard_form" model="ir.ui.view">
|
|
<field name="name">fusion.migration.wizard.form</field>
|
|
<field name="model">fusion.migration.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Migrate from Enterprise">
|
|
<sheet>
|
|
<group>
|
|
<field name="enterprise_modules_detected" readonly="1"/>
|
|
<field name="notes" readonly="1"/>
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button name="action_run_migration" type="object" string="Run Migration" class="btn-primary"/>
|
|
<button special="cancel" string="Close" class="btn-secondary"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_fusion_migration_wizard" model="ir.actions.act_window">
|
|
<field name="name">Migrate from Enterprise</field>
|
|
<field name="res_model">fusion.migration.wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<!--
|
|
Migration wizard lives under Accounting > Configuration, and is
|
|
ONLY visible while at least one Enterprise accounting module is
|
|
still installed. Once the operator has uninstalled Enterprise, the
|
|
wizard is hidden \u2014 there's nothing left to migrate.
|
|
Visibility is gated by the intersection of:
|
|
- group_fusion_accounting_admin (admin-only feature)
|
|
- group_fusion_show_when_enterprise_present (computed: members
|
|
iff at least one Enterprise accounting module is installed)
|
|
-->
|
|
<!-- Note: gating uses ONLY group_fusion_show_when_enterprise_present.
|
|
Admin-restriction is enforced via the model ACL
|
|
(ir.model.access.csv only grants access to group_fusion_accounting_admin).
|
|
Odoo `groups=` on menuitems uses OR semantics, so listing both groups
|
|
would let any admin see the menu even after Enterprise is uninstalled. -->
|
|
<menuitem id="menu_fusion_migration_root"
|
|
name="Migrate from Enterprise"
|
|
parent="account.menu_finance_configuration"
|
|
sequence="95"
|
|
groups="fusion_accounting_core.group_fusion_show_when_enterprise_present"/>
|
|
<menuitem id="menu_fusion_migration_wizard"
|
|
name="Run Migration Wizard"
|
|
parent="menu_fusion_migration_root"
|
|
action="action_fusion_migration_wizard"
|
|
sequence="10"
|
|
groups="fusion_accounting_core.group_fusion_show_when_enterprise_present"/>
|
|
</odoo>
|