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

Android: How can I filter my search using (a OR b) AND c ?

By
CVE
on 3/21/14, 1:11 PM 853 views

Hello, I am currently using OpenErpConnect to make an Android app: => github.com/zikzakmedia/android-openerp

According to the documentation, It is possible to search the ERP using an OR query:

Integer[] ids = oc.search("res.partner", new Object[] {"|", new Object[] {"name", "=", "Enric"}, new Object[] {"name", "!=", "ZZ"}});

This in indeed working pretty well, but I would like to filter using multiple criteria. Let's call this search a OR b

I have unsuccessfully tried a "&" symbol to add a criteria, but this result as a null.

Any help from other developers would be highly appreciated.

Thank a lot!

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

1 follower(s)

Stats

Asked: 3/21/14, 1:11 PM
Seen: 853 times
Last updated: 3/16/15, 8:10 AM