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

Multiple domain concept in openerp

By
sridhar
on 3/18/15, 12:42 AM 1,864 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

--Axel Mendoza--
10238
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

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.

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

3 follower(s)

Stats

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