Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
4532 มุมมอง

Hello


Access rights and record rules are driving me crazy.

I would like normal users (resource/Employee) to only see their own tasks within the timesheet whereas I would like the (Resource/responsable) to be able to see any of the tasks.


I tried many options.

#1 Setting global record rules  [('user_id','=',user.id)] on project.task

-> Resource/Employee see their own tasks only: OK

-> Resource/Responsable only see their own tasks: NOK

This was expected.


#2 Setting global record rules  [('user_id','=',user.id)] on project.task AND setting record rule [(1, '=', 1)] on project.task for group

Resource/Responsable

-> I still get the same behavior as in #1

 

#3 Setting record rule [('user_id','=',user.id)] on project.task for group Resource/employee  AND setting record rule [(1, '=', 1)] on project.task for group Resource/Responsable

I still get the same behavior


With any rules, both Resource/Responsable and Resource/Employeecan access to all tasks


I surely misanderstand something. Any help would be appreciated


Thank you

Franck

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

 -

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try by setting 

[('user_id', '=', user.id)]

for the group Resource/Employee and setting

 [(1, '=', 1)]

for the group Resource/Responsable. No global rules


อวตาร
ละทิ้ง
ผู้เขียน

It doesn't work neither. In that case Resource/Employee see all tasks.

only if the user have the two roles

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 16
3210
0
มิ.ย. 24
1451
Is Voice recording possible? in V16 แก้ไขแล้ว
2
ส.ค. 23
2438
1
ต.ค. 22
6421
6
ก.พ. 24
51509