14. How To Apply Domain For Menu In Odoo || Odoo 15 Development Tutorials

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ •

  • @legend-facts
    @legend-facts 2 роки тому

    I am watching video and really helpfull

  • @shankarthiyagaraajan1147
    @shankarthiyagaraajan1147 2 роки тому

    Hi,
    Is that possible to have two different group of conditions under same domain. Like below,
    ['|',['&',('land_type','=','government_owned'),('sq_feet','<','800')],['|',('land_type','=','private'),('land_type','=','form_land')]]
    Here i have (ex. in python logic),
    (land_type=='government_owned' and sq_feet

    • @OdooMates
      @OdooMates  2 роки тому

      Yes we can write any domain using and add or operators

    • @shankarthiyagaraajan1147
      @shankarthiyagaraajan1147 2 роки тому

      @@OdooMates But if I apply this, then I'm getting
      "TypeError: unhashable type: 'list'"

    • @OdooMates
      @OdooMates  2 роки тому

      May be the written syntax is wrong, start from small domain and then expand and see at which point the error appears

    • @shankarthiyagaraajan1147
      @shankarthiyagaraajan1147 2 роки тому

      @@OdooMates If i go with, (land_type == 'private or land_type == 'form_land')
      or
      (land_type=='government_owned' and sq_feet

    • @OdooMates
      @OdooMates  2 роки тому

      May be you are combining the domains in wrong way, please show and we will see