Reputation: 429
I want to group the accesses each type of group to a parent groupas the picture in odoo 13
Upvotes: 0
Views: 346
Reputation: 372
Please use this code to create category
<record model="ir.module.category" id="module_category_custom">
<field name="name">Custom Category</field>
<field name="description">Custom</field>
<field name="sequence">1</field>
</record>
Please use the below coed in xml.
<field name="category_id" ref="Parent Category"/>
For example:
<record id="group_account_invoice" model="res.groups">
<field name="name">Billing</field>
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="new_group_id" model="res.groups">
<field name="name">New Group Name</field>
<field name="category_id" ref="module.module_category_custom"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
Give this xml file in manifest
Upvotes: 1