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
e1747502
Commit
e1747502
authored
4 years ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[cgscop #236] ajout règle sécurité sur les heures théoriques
parent
487a7e66
Branches
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/security_rules.xml
+8
-0
8 additions, 0 deletions
security/security_rules.xml
views/ur_month_timesheet.xml
+1
-0
1 addition, 0 deletions
views/ur_month_timesheet.xml
with
9 additions
and
0 deletions
security/security_rules.xml
+
8
−
0
View file @
e1747502
...
@@ -21,6 +21,14 @@
...
@@ -21,6 +21,14 @@
<field
eval=
"True"
name=
"global"
/>
<field
eval=
"True"
name=
"global"
/>
</record>
</record>
<record
id=
"ur_month_timesheet_rule_ur"
model=
"ir.rule"
>
<field
name=
"name"
>
ur month timesheet rule per ur
</field>
<field
name=
"model_id"
ref=
"model_ur_month_timesheet"
/>
<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=
"project_rule_ur"
model=
"ir.rule"
>
<record
id=
"project_rule_ur"
model=
"ir.rule"
>
<field
name=
"name"
>
project rule per ur
</field>
<field
name=
"name"
>
project rule per ur
</field>
<field
name=
"model_id"
ref=
"project.model_project_project"
/>
<field
name=
"model_id"
ref=
"project.model_project_project"
/>
...
...
This diff is collapsed.
Click to expand it.
views/ur_month_timesheet.xml
+
1
−
0
View file @
e1747502
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<field
name=
"month"
required=
"1"
/>
<field
name=
"month"
required=
"1"
/>
<field
name=
"working_time"
required=
"1"
/>
<field
name=
"working_time"
required=
"1"
/>
<field
name=
"ur_id"
options=
"{'no_open': True, 'no_create': True}"
readonly=
"1"
/>
<field
name=
"ur_id"
options=
"{'no_open': True, 'no_create': True}"
readonly=
"1"
/>
<field
name=
"company_id"
groups=
"base.group_no_one"
options=
"{'no_open': True, 'no_create': True}"
/>
</tree>
</tree>
</field>
</field>
</record>
</record>
...
...
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