تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
13044 أدوات العرض

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
ديسمبر 24
1104
0
سبتمبر 24
1118
1
مارس 21
2316
2
ديسمبر 24
1378
Tie product to lead تم الحل
1
مايو 24
1025