Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cgscop_timesheet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hervé Silvant - CGScop
cgscop_timesheet
Commits
cae70b06
Commit
cae70b06
authored
5 years ago
by
Rémi - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
Add rights on cgscop_timesheet_sheet to my UR only
parent
7c84c49b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
security/ir.model.access.csv
+0
-1
0 additions, 1 deletion
security/ir.model.access.csv
security/security_rules.xml
+26
-0
26 additions, 0 deletions
security/security_rules.xml
with
26 additions
and
1 deletion
security/ir.model.access.csv
+
0
−
1
View file @
cae70b06
...
...
@@ -9,4 +9,3 @@ access_project_project_cg_manager,access_project_project_cg,model_project_projec
access_account_analytic_account_ur_manager,access_account_analytic_account_ur,analytic.model_account_analytic_account,cgscop_partner.group_ur_list_modif,1,1,1,1
access_account_analytic_account_cg_manager,access_account_analytic_account_cg,analytic.model_account_analytic_account,cgscop_partner.group_cg_administrator,1,1,1,1
access_cgscop_timesheet_sheet_user,access_cgscop_timesheet_sheet_user,model_cgscop_timesheet_sheet,hr_timesheet.group_hr_timesheet_user,1,1,1,1
access_cgscop_timesheet_sheet_manager,access_cgscop_timesheet_sheet_user,model_cgscop_timesheet_sheet,hr_timesheet.group_timesheet_manager,1,1,1,1
This diff is collapsed.
Click to expand it.
security/security_rules.xml
+
26
−
0
View file @
cae70b06
...
...
@@ -51,5 +51,31 @@
<field
eval=
"True"
name=
"global"
/>
<field
name=
"active"
eval=
"False"
/>
</record>
<record
id=
"account.account_analytic_line_rule_billing_user"
model=
"ir.rule"
>
<field
name=
"name"
>
account.analytic.line.billing.user
</field>
<field
name=
"model_id"
ref=
"model_account_analytic_line"
/>
<field
name=
"perm_read"
eval=
"False"
/>
<field
name=
"perm_write"
eval=
"True"
/>
<field
name=
"perm_create"
eval=
"True"
/>
<field
name=
"perm_unlink"
eval=
"True"
/>
<field
name=
"active"
eval=
"False"
/>
</record>
<record
id=
"timesheet_sheet_rule_ur"
model=
"ir.rule"
>
<field
name=
"name"
>
Feuilles de temps de mon UR
</field>
<field
name=
"model_id"
ref=
"cgscop_timesheet.model_cgscop_timesheet_sheet"
/>
<field
name=
"domain_force"
>
[('ur_id','=',user.company_id.ur_id.id)]
</field>
<field
name=
"groups"
eval=
"[(6, 0, [ref('base.group_user')])]"
/>
<field
eval=
"True"
name=
"global"
/>
</record>
<record
id=
"timesheet_sheet_rule_administrator_ur"
model=
"ir.rule"
>
<field
name=
"name"
>
Feuilles de temps administrator
</field>
<field
name=
"model_id"
ref=
"cgscop_timesheet.model_cgscop_timesheet_sheet"
/>
<field
name=
"domain_force"
>
[(1,'=',1)]
</field>
<field
name=
"groups"
eval=
"[(6, 0, [ref('cgscop_partner.group_cg_administrator')])]"
/>
<field
eval=
"True"
name=
"global"
/>
</record>
</data>
</odoo>
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