Defining filters on record lists – domain
We've already seen an example of a domain in the first recipe of this chapter, which was
[('customer_rank', '>', 0)]. Often, you need to display a subset of all available records from an action or allow only a subset of possible records to be the target of a
many2one relation. The way to describe these filters in Odoo is by using domains. This recipe illustrates how to use a domain to display a selection of partners.
How to do it...
To display a subset of partners from your action, you need to perform the following steps: