Skip to content

Commit

Permalink
Merge PR #1970 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Nov 26, 2024
2 parents 7ab7622 + 001b35b commit 688b115
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions account_usability/security/res_groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,46 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<!-- Change groups to fit with EE configuration -->
<!-- Change groups to fit with EE configuration
Note: The inheritance mechanism is :
group_account_readonly ⬂
group_account_invoice ⇨ group_account_user ⇨ group_account_manager
-->

<!-- Level 2:
<!-- Level 1:
Name: Show Accounting Features - Readonly -> Read-only
Parent: Technical -> Accounting
Parent:
Before: Technical (base.module_category_hidden)
After: Accounting (base.module_category_accounting_accounting)
Implied Groups:
Before: base.group_user
No Change.
-->

<record id="account.group_account_readonly" model="res.groups">
<field name="name">Read-only</field>
<field name="category_id" ref="base.module_category_accounting_accounting" />
</record>

<!-- Level 2: account.group_account_invoice
Name: Billing
This group is not modified by this module.
Parent:
Before: Accounting (base.module_category_accounting_accounting)
No Change.
Implied Groups:
Before: base.group_user
No Change.
-->

<!-- Level 3:
Name: Show Full Accounting Features -> Bookkeeper
Parent: Technical -> Accounting
Parent:
Before: Technical (base.module_category_hidden)
After: Accounting (base.module_category_accounting_accounting)
Implied Groups:
Before: account.group_account_invoice + account.group_account_readonly
No Change.
-->
<record id="account.group_account_user" model="res.groups">
<field name="name">Bookkeeper</field>
Expand All @@ -28,13 +53,17 @@

<!-- Level 4:
Name: Billing Administrator -> Accountant
Implied Groups : account.group_account_invoice -> account.group_account_user
Implied Groups :
Before: account.group_account_invoice + base.group_private_addresses
After: account.group_account_user + base.group_private_addresses
-->
<record id="account.group_account_manager" model="res.groups">
<field name="name">Accountant</field>
<field
name="implied_ids"
eval="[(6, 0, [ref('account.group_account_user')])]"
eval="[
(3, ref('account.group_account_invoice')),
(4, ref('account.group_account_user'))]"
/>
</record>

Expand Down

0 comments on commit 688b115

Please sign in to comment.