android-openerp icon indicating copy to clipboard operation
android-openerp copied to clipboard

search() method problem

Open nowirch opened this issue 12 years ago • 5 comments

Hi Enric Caumons I try using your OpenErpConnect.java class and successful in using Create(), Read() methods. But I can't use your Search() method, it always returns null value.

My code is:

oec = OpenErpConnect.connect("192.168.0.106", 8069, "Chill", "admin", "1"); Long[] ids = oec.search("pos.category", new Object[0]);

My params is: [Chill, 1, 1, pos.category, search, [Ljava.lang.Object;@40f5c5c0, 0, 0, null, null, false]

Thanks

nowirch avatar Nov 27 '12 03:11 nowirch

Hi,

Have you tried using a default module such as res.partner to check if that works?

caumons avatar Nov 27 '12 10:11 caumons

I've tried using many model, but no use. I use C# library then I can "Search" successfully, my OpenERP version is 6.1

nowirch avatar Nov 28 '12 02:11 nowirch

Hi Enric Caumons, i am trying to use the Search method without success, i have tried many openerp model objects (res.partener, hr.employee ...), it always returns a null value. Can you please provide a code sample of how to use it correctly. thanks.

joesombody avatar Jan 17 '13 15:01 joesombody

Hi all! This connector class was used in OpenERP 6.0, I'm not using it anymore and I will not maintain it, so I will not expend more time trying to find where it crashes. I know that there are some changes in OpenERP 6.1 and 7 , have you tried if is it the real problem? A change in the way the web services work (maybe the interface is different)?

If someone is able to make the code work well again, send a pull request.

Cheers!

caumons avatar Jan 25 '13 17:01 caumons

If someone is able to make the code work well again, send a pull request.

Thanks Enric. This API is available on v6.0.

Or check www.openerp2tryton.com It's available Tryrton Android client.

zikzakmedia avatar Jan 25 '13 17:01 zikzakmedia