Skip to Content
मेन्यू
This question has been flagged
2 Replies
12986 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
दिस॰ 24
1071
0
सित॰ 24
1086
1
मार्च 21
2284
2
दिस॰ 24
1321
1
मई 24
1011