Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
13057 Visualizações

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
Cancelar

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

Similar solution

Melhor resposta

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Autor

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

Publicações relacionadas Respostas Visualizações Atividade
0
dez. 24
1123
0
set. 24
1128
1
mar. 21
2323
2
dez. 24
1380
1
mai. 24
1031