Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
13161 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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

Similar solution

Câu trả lời hay nhất

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..

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks but in this code, "user.group_ids:" not found

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 24
1181
0
thg 9 24
1202
1
thg 3 21
2382
2
thg 12 24
1479
Tie product to lead Đã xử lý
1
thg 5 24
1071