The 'Fusion Accounting' top-level menu was missing the web_icon attribute, so the app switcher grid showed a placeholder instead of the branded icon. ir.ui.menu.web_icon is separate from ir.module.module.icon (Apps page) — both need to be set for full icon coverage. Made-with: Cursor
48 lines
2.1 KiB
XML
48 lines
2.1 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>
|
|
|
|
<!--
|
|
Top-level "Fusion Accounting" menu so the UserError guidance
|
|
("Fusion Accounting -> Migrate from Enterprise") is actually reachable.
|
|
Placed at top level (no parent) because the migration is a one-time
|
|
admin task; making it visible during switchover is the point.
|
|
`groups` hides the menu from non-admins (mirroring the ACL on the wizard).
|
|
-->
|
|
<menuitem id="menu_fusion_migration_root"
|
|
name="Fusion Accounting"
|
|
sequence="95"
|
|
web_icon="fusion_accounting_migration,static/description/icon.png"
|
|
groups="fusion_accounting_core.group_fusion_accounting_admin"/>
|
|
<menuitem id="menu_fusion_migration_wizard"
|
|
name="Migrate from Enterprise"
|
|
parent="menu_fusion_migration_root"
|
|
action="action_fusion_migration_wizard"
|
|
sequence="10"
|
|
groups="fusion_accounting_core.group_fusion_accounting_admin"/>
|
|
</odoo>
|