forked from Numigi/odoo-base-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent access errors related to res.groups when saving a user (Numig…
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<!-- | ||
The ir.model.access.csv file contains an entry to allow editing a user group. | ||
This entry is only there to prevent access errors when creating/updating a user. | ||
Groups should not be editable by the admin light user. | ||
Only real administration groups should have access. | ||
--> | ||
<record id="res_groups_rule" model="extended.security.rule"> | ||
<field name="model_id" ref="base.model_res_groups"/> | ||
<field name="groups_id" eval="[(4, ref('base.group_system'))]"/> | ||
<field name="perm_write" eval="1"/> | ||
<field name="perm_create" eval="1"/> | ||
<field name="perm_unlink" eval="1"/> | ||
</record> | ||
|
||
</odoo> |
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