Skip to Content
Menú
This question has been flagged
2 Respostes
13193 Vistes

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
Descartar

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
Descartar
Best Answer

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

Avatar
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
0
de des. 24
1193
0
de set. 24
1228
1
de març 21
2398
2
de des. 24
1513
1
de maig 24
1078