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 need to create a user defined filter like this:
if (field1 = 10 and field2 = 12) or (field3 = 13 and field4 = 13) or (field5 = 15 and field6 = 16)
In Settings->User Interface->User-defined Filters, I've created a filter like this:
['|', '|', ['&', ['field1', '=', 10], ['field2', '=', 12]], ['&', ['field2', '=', 13], ['field4', '=', 14]], ['&', ['field5', '=', 15], ['field6', '=', 16]]]
But it's giving error on client browser:
ValueError: Invalid leaf ['&', ['field1', '=', 10], ['field2', '=', 12]]
What is the correct way to do it?
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: 1/10/16, 9:21 PM|
|Seen: 626 times|
|Last updated: 1/11/16, 10:17 AM|