Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
12979 Vistas

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

Mejor respuesta

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
Mejor respuesta

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

Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 24
1066
0
sept 24
1085
1
mar 21
2283
2
dic 24
1318
1
may 24
1010