53 lines
2.2 KiB
XML
53 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!--
|
|
Groups: what Enterprise adds on top of Community.
|
|
|
|
Odoo 20 Community defines the accounting groups like this
|
|
(account/security/account_security.xml):
|
|
|
|
group_account_invoice -> base.group_user
|
|
group_account_readonly -> base.group_user
|
|
group_account_basic -> group_account_invoice
|
|
group_account_user -> group_account_basic + group_account_readonly
|
|
group_account_manager -> group_account_invoice (chain stops here)
|
|
|
|
That last line is the problem. `group_account_manager` implies only
|
|
`group_account_invoice`, so a user who is a full accounting
|
|
administrator does NOT get:
|
|
|
|
* `group_account_readonly`, which every report and every Accounting
|
|
menu entry in Community is gated on
|
|
* `group_account_basic`, which the dashboard menu requires
|
|
|
|
Result on plain Community: the Accounting app opens and immediately
|
|
shows "You do not have access to the Accounting Dashboard", and the
|
|
report entries disappear from the menu.
|
|
|
|
Enterprise fixes this in two steps:
|
|
* accountant : manager -> (remove invoice) + account_user
|
|
* account_accountant: manager -> + account_basic
|
|
|
|
We reproduce the same end state in one place: manager implies
|
|
`group_account_user`, which itself implies basic + readonly. This is
|
|
pure group wiring, no Enterprise code involved.
|
|
-->
|
|
<record id="account.group_account_manager" model="res.groups">
|
|
<field name="implied_ids" eval="[(4, ref('account.group_account_user'))]"/>
|
|
</record>
|
|
|
|
<!-- Administrators get the full accounting feature set, the way Enterprise
|
|
grants it to `base.user_admin` / `base.user_root`. Without this the
|
|
person installing the modules cannot see the reports they just
|
|
installed. -->
|
|
<record id="base.user_admin" model="res.users">
|
|
<field name="group_ids" eval="[(4, ref('account.group_account_user'))]"/>
|
|
</record>
|
|
|
|
<record id="base.user_root" model="res.users">
|
|
<field name="group_ids" eval="[(4, ref('account.group_account_user'))]"/>
|
|
</record>
|
|
|
|
</odoo>
|