Its right to call a domain a list of criteria. The point to note here is that each criterion is a triple (either a list or a tuple) of (field_name, operator, value) where:
field_name (str)
It can be defined as a field name of the current model. It could also be called  a relationship traversal through a Many2one using dot-notation. For instance, 'street' or'partner_id.country'.
operator (str)
for example you can use given below code-:
[('name','=','ABC'),
 ('language.code','!=','en_US'),
 '|',('country_id.code','=','be'),
     ('country_id.code','=','de')]
This domain is interpreted as:
 
   (name is 'ABC')
AND (language is NOT english)
AND (country is Belgium OR Germany)
                       
                    
0 Comment(s)