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
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
gru 24
|
1068 | ||
|
0
wrz 24
|
1086 | ||
|
1
mar 21
|
2283 | ||
|
2
gru 24
|
1319 | ||
Tie product to lead
Rozwiązane
|
|
1
maj 24
|
1010 |
http://help.openerp.com/question/19972/how-to-implement-typical-security-rule-to-user-group/?answer=19975#post-id-19975
Similar solution