Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odoo CE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Comunitats Energètiques
Odoo CE
Commits
69ea96e6
Commit
69ea96e6
authored
2 years ago
by
Daniil Digtyar Vasilieva
Browse files
Options
Downloads
Patches
Plain Diff
Created base roles for the platform
parent
3647006f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!86
Fix partners company
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
energy_communities/__manifest__.py
+5
-1
5 additions, 1 deletion
energy_communities/__manifest__.py
energy_communities/security/res_users_role_data.xml
+47
-0
47 additions, 0 deletions
energy_communities/security/res_users_role_data.xml
with
52 additions
and
1 deletion
energy_communities/__manifest__.py
+
5
−
1
View file @
69ea96e6
...
...
@@ -2,11 +2,14 @@
'
name
'
:
"
Comunitats Energètiques customizations
"
,
'
version
'
:
'
14.0.0.0.0
'
,
'
depends
'
:
[
'
account
'
,
'
cooperator
'
,
'
base_user_role
'
,
'
base_user_role_company
'
,
'
l10n_es_cooperator
'
,
'
auth_oidc
'
,
'
contacts
'
,
'
base_rest
'
,
'
base_user_role
'
,
'
auth_api_key
'
,
'
crm
'
,
],
...
...
@@ -22,6 +25,7 @@
],
'
data
'
:
[
'
security/ir_rules_data.xml
'
,
'
security/res_users_role_data.xml
'
,
'
data/res_groups_data.xml
'
,
'
data/utm_data.xml
'
,
'
data/crm_lead_tag.xml
'
,
...
...
This diff is collapsed.
Click to expand it.
energy_communities/security/res_users_role_data.xml
0 → 100644
+
47
−
0
View file @
69ea96e6
<?xml version="1.0"?>
<odoo
noupdate=
"1"
>
<record
id=
"energy_communities_category"
model=
"ir.module.category"
>
<field
name=
"name"
>
Energy Communities
</field>
<field
name=
"description"
>
Nivell d'Accés dels usuaris a la plataforma Odoo de les Comunitats Energètiques
</field>
<field
name=
"sequence"
>
10
</field>
</record>
<!-- new groups -->
<record
model=
"res.groups"
id=
"group_user"
>
<field
name=
"name"
>
User
</field>
<field
name=
"category_id"
ref=
"energy_communities_category"
/>
</record>
<record
model=
"res.groups"
id=
"group_admin"
>
<field
name=
"name"
>
Administrator
</field>
<field
name=
"category_id"
ref=
"energy_communities_category"
/>
</record>
<record
model=
"res.groups"
id=
"group_platform_manager"
>
<field
name=
"name"
>
Platform Manager
</field>
<field
name=
"category_id"
ref=
"energy_communities_category"
/>
</record>
<!-- new roles -->
<record
model=
"res.users.role"
id=
"role_ce_member"
>
<field
name=
"name"
>
Energy Community Member
</field>
<field
name=
"implied_ids"
ref=
"group_user"
/>
<field
name=
"implied_ids"
eval=
"[(6, 0, [ref('group_user')])]"
/>
</record>
<record
model=
"res.users.role"
id=
"role_ce_admin"
>
<field
name=
"name"
>
Energy Community Administrator
</field>
<field
name=
"implied_ids"
eval=
"[(6, 0, [ref('base.group_user'), ref('account.group_account_invoice'),
ref('cooperator.cooperator_group_user'), ref('group_admin')])]"
/>
</record>
<record
model=
"res.users.role"
id=
"role_platform_admin"
>
<field
name=
"name"
>
Platform admin role
</field>
<field
name=
"implied_ids"
eval=
"[(6, 0, [ref('group_platform_manager'),
ref('cooperator.cooperator_group_manager')])]"
/>
</record>
</odoo>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment