Skip to content

Commit

Permalink
Merge PR #4113 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by sergiocorato
  • Loading branch information
OCA-git-bot committed Apr 30, 2024
2 parents 27ffd89 + ff4eff6 commit a7f3c70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets_management/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AccountMove(models.Model):

hide_link_asset_button = fields.Boolean(
compute="_compute_hide_link_asset_button",
compute_sudo=True,
default=True,
string="Hide Asset Button",
)
Expand Down
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 a7f3c70

Please sign in to comment.