|
|
|
|
@@ -0,0 +1,60 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<odoo>
|
|
|
|
|
<!-- Module Category -->
|
|
|
|
|
<record id="module_category_fusion_accounting" model="ir.module.category">
|
|
|
|
|
<field name="name">Fusion Accounting</field>
|
|
|
|
|
<field name="sequence">25</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- Groups Privilege -->
|
|
|
|
|
<record id="res_groups_privilege_fusion_accounting" model="res.groups.privilege">
|
|
|
|
|
<field name="name">Fusion Accounting</field>
|
|
|
|
|
<field name="category_id" ref="module_category_fusion_accounting"/>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- User Group (Staff) -->
|
|
|
|
|
<record id="group_fusion_accounting_user" model="res.groups">
|
|
|
|
|
<field name="name">User</field>
|
|
|
|
|
<field name="sequence">10</field>
|
|
|
|
|
<field name="implied_ids" eval="[(4, ref('account.group_account_user'))]"/>
|
|
|
|
|
<field name="privilege_id" ref="res_groups_privilege_fusion_accounting"/>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- Manager Group -->
|
|
|
|
|
<record id="group_fusion_accounting_manager" model="res.groups">
|
|
|
|
|
<field name="name">Manager</field>
|
|
|
|
|
<field name="sequence">20</field>
|
|
|
|
|
<field name="implied_ids" eval="[(4, ref('group_fusion_accounting_user'))]"/>
|
|
|
|
|
<field name="privilege_id" ref="res_groups_privilege_fusion_accounting"/>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- Admin Group -->
|
|
|
|
|
<record id="group_fusion_accounting_admin" model="res.groups">
|
|
|
|
|
<field name="name">Administrator</field>
|
|
|
|
|
<field name="sequence">30</field>
|
|
|
|
|
<field name="implied_ids" eval="[(4, ref('group_fusion_accounting_manager'))]"/>
|
|
|
|
|
<field name="privilege_id" ref="res_groups_privilege_fusion_accounting"/>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- Auto-assign: Accounting users get Fusion User; Advisers get Admin -->
|
|
|
|
|
<record id="account.group_account_user" model="res.groups">
|
|
|
|
|
<field name="implied_ids" eval="[(4, ref('group_fusion_accounting_user'))]"/>
|
|
|
|
|
</record>
|
|
|
|
|
<record id="account.group_account_manager" model="res.groups">
|
|
|
|
|
<field name="implied_ids" eval="[(4, ref('group_fusion_accounting_admin'))]"/>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- Phase 1: dynamic coexistence group -->
|
|
|
|
|
<record id="group_fusion_show_when_enterprise_absent" model="res.groups">
|
|
|
|
|
<field name="name">Fusion: Show menus when Enterprise absent</field>
|
|
|
|
|
<field name="comment">Computed group. Membership: all internal users when no Enterprise accounting module is installed. Used to hide fusion sub-module menus that would conflict with Enterprise UIs.</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<!-- Phase 8: inverse coexistence group \u2014 visible only when Enterprise IS present.
|
|
|
|
|
Used to hide migration/transitional UIs once the migration is complete and
|
|
|
|
|
Enterprise has been uninstalled. -->
|
|
|
|
|
<record id="group_fusion_show_when_enterprise_present" model="res.groups">
|
|
|
|
|
<field name="name">Fusion: Show menus when Enterprise present</field>
|
|
|
|
|
<field name="comment">Computed group. Membership: all internal users WHEN at least one Enterprise accounting module is installed. Used to hide migration/transitional UIs that are irrelevant once Enterprise has been uninstalled.</field>
|
|
|
|
|
</record>
|
|
|
|
|
</odoo>
|