Skip to content

Commit

Permalink
[FIX]assets_management: differenciate groups
Browse files Browse the repository at this point in the history
  • Loading branch information
PicchiSeba committed Apr 22, 2024
1 parent 64c4e03 commit 5f32e26
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions assets_management/security/res_groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@

<record id="group_asset_user" model="res.groups">
<field name="name">Asset Users</field>
<field name="category_id" ref="base.module_category_accounting_accounting" />
<field name="category_id" ref="base.module_category_hidden" />
<field name="users" eval="[(4, ref('base.user_root'))]" />
</record>

<record id="group_account_invoice_assets" model="res.groups">
<field name="name">Billing and Assets</field>
<field name="category_id" ref="base.module_category_accounting_accounting" />
<field
name="implied_ids"
eval="[
(4, ref('group_asset_user')),
(4, ref('account.group_account_invoice')),
]"
/>
</record>

<record id="account.group_account_manager" model="res.groups">
<field name="implied_ids" eval="[(4, ref('group_asset_user'))]" />
<field name="implied_ids" eval="[(4, ref('group_account_invoice_assets'))]" />
</record>

</odoo>

0 comments on commit 5f32e26

Please sign in to comment.