Odoo Help

0

Multiple domain concept in openerp

By
sridhar
on 3/18/15, 12:42 AM 2,111 views

Dear all,

I have a question in domain concept, i need a several condition to do that for example, i have 4 groups user, manager, super manager and admin, in this case user need to know his entry only, manager only know his users entry only, Super Manager need to know all the managers details and user details, how to do that in domain.

i tried this way to complete. but user dont having any entry but manager level is ok

Case 1:

['|',('parent_id.user_id','=',uid),('pending_qty','!=',0),('parent_id.branch_manager','=',uid),('pending_qty','!=',0)]

Case 2:

can't put pending qty as zero

['|',('parent_id.user_id','=',uid),('parent_id.branch_manager','=',uid)]

How can i put domain for this.

why do you want 4 domains? What its the reason?

Juan José Scarafía
on 3/20/15, 12:04 PM
2
Axel Mendoza
On 9/8/15, 5:06 AM

This is the case for the ir.rule domain force assigned to specific group and each group inherit from the needed one following your description.

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.

Register

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

3 follower(s)

Stats

Asked: 3/18/15, 12:42 AM
Seen: 2111 times
Last updated: 9/8/15, 5:06 AM