Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
13138 Prikazi

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
Opusti

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

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

Avatar
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
0
dec. 24
1173
0
sep. 24
1194
1
mar. 21
2370
2
dec. 24
1466
1
maj 24
1069