Odoo Help


How I retrive current users groups in OpenERP 7.0 ?

Farid Ghanchi
on 6/6/13, 3:49 AM 6,876 views

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.


Similar solution

on 6/6/13, 3:55 AM
Akhmad Mizkat
On 12/8/13, 10:54 PM

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

On 6/6/13, 3:55 AM


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

Farid Ghanchi
on 6/6/13, 5:37 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 6/6/13, 3:49 AM
Seen: 6876 times
Last updated: 3/16/15, 8:10 AM