Defining filters on record lists – Domain

We've already seen the first example of a domain in the first action, which was [('customer', '=', True)]. Often, you need to display a subset of all available records from an action, or to 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset