Skip to Content
Menu
This question has been flagged
2 Replies
12978 Views

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.

Avatar
Discard

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

Similar solution

Best Answer

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..

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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

Related Posts Replies Views Activity
0
Dec 24
1065
0
Sep 24
1084
1
Mar 21
2283
2
Dec 24
1316
1
May 24
1010