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

I notice that when you assign a group to a window action,
other users not in the group can still access/execute that window action.

Example:

I have two users:

  • User1 member of Group1
  • User2 not a member of Group1

Now I add Group1 in Security tab of Invoices window action.

When User2 is logged in and clicks Customer->Invoices, he can still open the 
Invoices which expected he should not since the action has "Security" groups already 
assigned.

How do we accomplish this?

อวตาร
ละทิ้ง

Maybe user2 has a group which inherit group1. is group1 inherited by another group.

ผู้เขียน

I'm sure user2 is not member of group1.
I have done this in testing.
Also looked at the code for ir.actions.act_window
is has the field, groups_id but does not use it.
whereas ir.actions.server
uses the groups_id field in it's run method
starts at line 602 of ir_actions.py

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
1846
6
ก.ค. 23
6445
0
มิ.ย. 23
2275
3
ธ.ค. 20
3573
2
ก.ย. 24
1710