This question has been flagged
1 Reply
2414 Views

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


Avatar
Discard
Best Answer

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

   

Avatar
Discard