Filtering and returning records through the API

We can use the same domain filters we used to limit rush orders to use the API to return a list of sale order IDs that match:

models.execute_kw(db, uid, password, 
    'sale.order', 'search', 
    [["[('x_rush','=',True),('state','=','progress')]]) 

Get Working with Odoo 11 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.