zikzakmedia / android-openerp

Android class connect to OpenERP (webservices)
15 stars 21 forks source link

search() method problem #3

Open nowirch opened 11 years ago

nowirch commented 11 years ago

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

caumons commented 11 years ago

Hi,

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

nowirch commented 11 years ago

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

joesombody commented 11 years ago

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.

caumons commented 11 years ago

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!

zikzakmedia commented 11 years ago

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.