跳至內容
選單
此問題已被標幟
2 回覆
13055 瀏覽次數

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
1123
0
9月 24
1128
1
3月 21
2323
2
12月 24
1380
1
5月 24
1030