Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to know how to do difficult domains with operators, because if I have something easy as:
(A & B) --> ['&', ('id', 'in', active_ids), ('partner_id', 'in', partner)]
I know to do it
But if I have
(A & B) | Cor
( (A & B) | C) | (D & E)I don't know how to do it, because I don't know where I have to put the operators
Odoo use polish notation to manage all filters and its operator between two filters. For that you need to have a look inside polish notation if you dont know anything about it. http://en.wikipedia.org/wiki/Polish_notation
From your question : ( (A & B) | C ) | (D & E) will be formed as like below to manage domain inside Odoo.
1) [ '|', '&', '|', '&', (A), (B), (C), (D), (E) ]
2) [ '|', '|', '&', (A), (B), (C), '&', (D), (E) ]
3) [ '|' , '&' , (D) , (E) , '|' , '&' , (A) , (B) , (C) ]
I hope you will get exact idea that how domain is working in Odoo.
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
|Asked: 5/19/16, 4:43 AM|
|Seen: 1633 times|
|Last updated: 5/20/16, 6:27 AM|