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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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..
help.openerp.com/question/19972/how-to-implement-typical-security-rule-to-user-group/?answer=19975#post-id-19975
Thanks but in this code, "user.group_ids:" not found
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
0
дек. 24
|
1104 | ||
|
0
сент. 24
|
1119 | ||
|
1
мар. 21
|
2316 | ||
|
2
дек. 24
|
1378 | ||
Tie product to lead
Решено
|
|
1
мая 24
|
1025 |
http://help.openerp.com/question/19972/how-to-implement-typical-security-rule-to-user-group/?answer=19975#post-id-19975
Similar solution