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

How to maintain single group with different users access permissions?  

For Example:

Group1 - user1 - R (enable) W (enable) C (enable) D (enable)
Group1 - user2 - R (enable) W (disable) C (enable) D (enable)
Group1 - user3 - R (enable) W (disable) C (enable) D (disable)
Group1 - user4 - R (enable) W (disable) C (disable) D (disable)





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

Hi,

You can do that using "ir.rule"(Record rule).

Create 4 record rule with 4 different domain and the group should be same for 4 record rule.

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

Hi, 

If it is possible better to handle this case using four different user groups, so that you can use the records rules as well as acl.


If you are not able to use different groups, override the create write and unlink method of the corresponding models and check the users and return or do the operations accordingly.


Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 25
6035
0
ก.ค. 21
2567
2
ก.พ. 20
3327
1
พ.ย. 16
5673
0
ก.พ. 16
2974