User Guides
< Back to Article ListAdding Domains to Entities
Last updated: 25 September 2023 at 16:43:21 UTC by Junari Assistant
Domains are used in Odoo to select or filter records from a Model (database table) – in many different places
Firstly Choose what Field you would like to filter on from the domain list, for this example we'll choose the 'Customer' field
Once you have chosen the field you would like to filter on, it will show you any sub fields you can then choose to filter on, for this example we are going to choose 'Country'
Once chosen the sub-field you would like to select/filter on, if the field you have chosen has any sub fields it will again show you these to choose from, in this example we are going to choose 'Country Name'
When you have no more sub-fields to choose from, you can decide what operator to use
"=" will match exactly what you type in the right hand box
"is not =" will not match exactly what you type in the right hand box
"contains" will search for records that contain exactly what you type in the right hand box
"does not contain" will search for records that do not contain exactly what you type in the right hand box
"is set" will search for records that have values in the field you specified
"is not set" will search for records that do not have values in the field you specified
"in" will allow you to enter multiple values to search for in the right hand box
"not in" will allow you to enter multiple values in the right hand box which won't be included in the search
If you wish to add multiple conditions in the domain you can choose to match records with ANY or ALL of the conditions you have specified
"ALL" will search records based on every condition you have specified, all will need to match
"ANY" will search records and only need to match one of your conditions specified