Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3118 Переглядів

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

   

Аватар
Відмінити