I'm currently working on a mobile app that connects with an openerp 7 instance though XML-RPC. Although xmlrpc comm between iOS & Openerp 7 works perfectly, I'm puzzled at which objects I need to interact with at the openerp side in order to get the product list with only the items I want and to post a sale.

Any one?

Thanx, M

有帮助吗?

解决方案

Working through XML-RPC is pretty much like working directly on the server, only slower.

To get the product list you'll need to interact wit product.product, and to narrow the list (and the data) you'll need to specify a domain such as domain=[('color','=','red'),('style','=','sport')] and fields=['id','name','...'].

Hopefully that's enough to get you going.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top