跳至内容
菜单
此问题已终结
1 回复
3101 查看

Hi,
If I want to get record if my origin of PO match with existing origin how I can write a query for this using xmlrpc..
below is my query, but its not giving any output..

models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))

po_ids = models.execute_kw(db,1,password, 'purchase.order', 'search', [[['origin','like', 'so_name%']]])

If anyone know this please help.. I want to fetch this record only through xmlrpc not by psycopg2


形象
丢弃
最佳答案

Hello @Nalini,

You can try this,

po_ids = models.execute_kw(db,1,password, 'purchase.order', 'search', [[['origin','like', 'SO%']]])

print po_ids

Regards,




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

形象
丢弃