Skip to content

Commit

Permalink
[IMP] security_rule_not_editable: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev-Roche committed Jul 23, 2024
1 parent 9258d71 commit eafb6a0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
8 changes: 5 additions & 3 deletions security_rule_not_editable/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright 2021 Akretion (https://www.akretion.com).
# Copyright 2024 Akretion (https://www.akretion.com).
# @author Sébastien BEAU <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Security Rule not editable",
"summary": "Forbid editing rule form UI force using code",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Base",
"website": "https://github.com/akretion/ak-odoo-incubator",
"author": " Akretion",
Expand All @@ -19,6 +19,8 @@
"depends": [
"base",
],
"data": [],
"data": [
"security/ir_model_access.xml",
],
"demo": [],
}
22 changes: 22 additions & 0 deletions security_rule_not_editable/security/ir_model_access.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<record id="base.access_ir_rule_group_erp_manager" model="ir.model.access">
<field name="perm_write">False</field>
<field name="perm_create">False</field>
<field name="perm_unlink">False</field>
</record>

<record id="base.access_ir_model_access_group_erp_manager" model="ir.model.access">
<field name="perm_write">False</field>
<field name="perm_create">False</field>
<field name="perm_unlink">False</field>
</record>

<record id="base.access_res_groups_group_erp_manager" model="ir.model.access">
<field name="perm_write">False</field>
<field name="perm_create">False</field>
<field name="perm_unlink">False</field>
</record>

</odoo>

0 comments on commit eafb6a0

Please sign in to comment.