Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
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
Odoo
Coopdevs OCB mirror
Commits
a7700203
Commit
a7700203
authored
10 years ago
by
Martin Trigaux
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] lunch: allow other people to create lunch orders for others
bzr revid: mat@openerp.com-20140428075301-ah6lgb7zzkr6vb3o
parent
7f236edc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/lunch/security/lunch_security.xml
+2
-26
2 additions, 26 deletions
addons/lunch/security/lunch_security.xml
with
2 additions
and
26 deletions
addons/lunch/security/lunch_security.xml
+
2
−
26
View file @
a7700203
...
...
@@ -17,38 +17,14 @@
<field
name=
"users"
eval=
"[(4, ref('base.user_root'))]"
/>
</record>
<record
id=
"lunch_mind_your_own_food"
model=
"ir.rule"
>
<field
name=
"name"
>
lunch.order: do not see and create other people's order
</field>
<field
name=
"model_id"
ref=
"model_lunch_order"
/>
<field
name=
"groups"
eval=
"[(4, ref('group_lunch_user'))]"
/>
<field
name=
"domain_force"
>
[('user_id', '=', user.id)]
</field>
</record>
<record
id=
"lunch_mind_other_food"
model=
"ir.rule"
>
<field
name=
"name"
>
lunch.order: do not see and create other people's order
</field>
<field
name=
"model_id"
ref=
"model_lunch_order"
/>
<field
name=
"groups"
eval=
"[(4, ref('group_lunch_manager'))]"
/>
<field
name=
"domain_force"
>
[(1, '=', 1)]
</field>
</record>
<record
id=
"lunch_mind_your_own_food_line"
model=
"ir.rule"
>
<field
name=
"name"
>
lunch.order.line: do not see and create other people's order line
</field>
<field
name=
"model_id"
ref=
"model_lunch_order_line"
/>
<field
name=
"groups"
eval=
"[(4, ref('group_lunch_user'))]"
/>
<field
name=
"domain_force"
>
[('order_id.user_id', '=', user.id)]
</field>
</record>
<record
id=
"lunch_mind_other_food_line"
model=
"ir.rule"
>
<field
name=
"name"
>
lunch.order.line: do not see and create other people's order line
</field>
<field
name=
"model_id"
ref=
"model_lunch_order_line"
/>
<field
name=
"groups"
eval=
"[(4, ref('group_lunch_manager'))]"
/>
<field
name=
"domain_force"
>
[(1, '=', 1)]
</field>
</record>
<record
id=
"lunch_mind_your_own_food_money"
model=
"ir.rule"
>
<field
name=
"name"
>
lunch.cashmove: do not see
and create
other people's cashmove
</field>
<field
name=
"name"
>
lunch.cashmove: do not see other people's cashmove
</field>
<field
name=
"model_id"
ref=
"model_lunch_cashmove"
/>
<field
name=
"groups"
eval=
"[(4, ref('group_lunch_user'))]"
/>
<field
name=
"domain_force"
>
[('user_id', '=', user.id)]
</field>
</record>
<record
id=
"lunch_mind_other_food_money"
model=
"ir.rule"
>
<field
name=
"name"
>
lunch.cashmove: do
not see and creat
e other people's cashmove
</field>
<field
name=
"name"
>
lunch.cashmove: do
se
e other people's cashmove
</field>
<field
name=
"model_id"
ref=
"model_lunch_cashmove"
/>
<field
name=
"groups"
eval=
"[(4, ref('group_lunch_manager'))]"
/>
<field
name=
"domain_force"
>
[(1, '=', 1)]
</field>
...
...
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