Вопрос

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