Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
13045 Представления

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.

Аватар
Отменить

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

Similar solution

Лучший ответ

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

Related Posts Ответы Просмотры Активность
0
дек. 24
1104
0
сент. 24
1119
1
мар. 21
2316
2
дек. 24
1378
1
мая 24
1025