-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] user_limited_access_settings: add demo section.
[ADD] dependency to base_user_role to make compatibility with this module.
- Loading branch information
1 parent
4466dfc
commit d0a5407
Showing
8 changed files
with
60 additions
and
62 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
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2024 Sylvain LE GAL - GRAP | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record id="partner_demo" model="res.partner"> | ||
<field name="name">Limited Access</field> | ||
<field name="company_id" ref="base.main_company"/> | ||
<field name="country_id" ref="base.us"/> | ||
<field name="tz">Europe/Brussels</field> | ||
<field name="email">[email protected]</field> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2024 Sylvain LE GAL - GRAP | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record id="user_demo" model="res.users"> | ||
<field name="partner_id" ref="partner_demo"/> | ||
<field name="login">limited</field> | ||
<field name="password">limited</field> | ||
<field name="signature" type="html"><span>-- <br/>+Mr Limited Access</span></field> | ||
<field name="company_id" ref="base.main_company"/> | ||
<field name="groups_id" eval="[Command.set([ | ||
ref('user_limited_access_settings.group_limited_settings'), | ||
ref('base.group_partner_manager'), | ||
])]"/> | ||
</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
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,9 +1,8 @@ | ||
This module adds a new basic Administration group named, | ||
"Limited Settings". | ||
This module adds a new basic Administration group named, "Limited Settings". | ||
|
||
Members of this group can only create users and companies. | ||
Members of this group can only create users and companies, and see User Roles. | ||
|
||
Note: | ||
**Note:** | ||
|
||
We prevent right escalation, by preventing user to give access to | ||
groups if he is not member of the group himself. |
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