Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
13007 Zobrazení

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
Zrušit

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

Similar solution

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
0
pro 24
1085
0
zář 24
1102
1
bře 21
2300
2
pro 24
1339
1
kvě 24
1018