Odoo Help

Welcome!

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

0

How I retrive current users groups in OpenERP 7.0 ?

By
Farid Ghanchi
on 6/6/13, 3:49 AM 6,439 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.

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

Similar solution

Zahin
on 6/6/13, 3:55 AM
1
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..

1
Zahin
On 6/6/13, 3:55 AM

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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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