Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] g2p_programs: access error on approve #674

Open
wants to merge 8 commits into
base: 17.0
Choose a base branch
from
1 change: 1 addition & 0 deletions spp_programs/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
],
"data": [
"data/user_roles.xml",
"security/program_security.xml",
"security/ir.model.access.csv",
"views/main_view.xml",
"views/entitlement_view.xml",
Expand Down
7 changes: 7 additions & 0 deletions spp_programs/security/program_security.xml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not want to provide access to the accounting module to the program module groups. Please add the required access rights to https://github.com/OpenSPP/openspp-modules/blob/648-openspp-modules/spp_programs/security/ir.model.access.csv.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<odoo noupdate="0">
<record id="g2p_program_cycle_approver" model="res.groups">
<field name="name">Program Cycle Approver</field>
<field name="category_id" ref="g2p_registry_base.openg2p_module" />
<field name="implied_ids" eval="[Command.link(ref('g2p_programs.g2p_program_validator')), Command.link(ref('account.group_account_invoice'))]" />
</record>
</odoo>
Loading