跳至内容
菜单
此问题已终结
2 回复
13013 查看

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

相关帖文 回复 查看 活动
0
12月 24
1085
0
9月 24
1102
1
3月 21
2303
2
12月 24
1344
1
5月 24
1018