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

I have get the current user group( Like manager etc.)

I have two group.(salesman,Manager).

User A gives a Manager group. User B gives a Salesman.

When B login so we retrive group.

How this possible.

อวตาร
ละทิ้ง

http://help.openerp.com/question/19972/how-to-implement-typical-security-rule-to-user-group/?answer=19975#post-id-19975

Similar solution

คำตอบที่ดีที่สุด

Hi, in your .py file, you could doing this : groups_id = self.pool.get('res.users').read(cr, uid, uid)['groups_id']

Hope this could help..

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

help.openerp.com/question/19972/how-to-implement-typical-security-rule-to-user-group/?answer=19975#post-id-19975

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

Thanks but in this code, "user.group_ids:" not found

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 24
1169
0
ก.ย. 24
1190
1
มี.ค. 21
2368
2
ธ.ค. 24
1461
Tie product to lead แก้ไขแล้ว
1
พ.ค. 24
1068