Skip to Content
Menu
This question has been flagged
2 Replies
13125 Rodiniai

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.

Portretas
Atmesti

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..

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
0
gruod. 24
1158
0
rugs. 24
1188
1
kov. 21
2365
2
gruod. 24
1454
1
geg. 24
1067