-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] security_rule_not_editable: black, isort, prettier
- Loading branch information
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -19,6 +19,8 @@ | |
"depends": [ | ||
"base", | ||
], | ||
"data": [], | ||
"data": [ | ||
"security/ir_model_access.xml", | ||
], | ||
"demo": [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |