Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to filter data in OpenERP using domain list?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 50
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: