Odoo Name Search || Search Using Multiple field values inside a model

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • #odoodevelopment #odootutorials #odoodevelopmenttutorials
    Name search function in Odoo. How to use name search function in odoo to search inside multiple fields. Search many2one field using multiple fields. How to write name_search function in odoo. name_search function and its use in odoo.
    Name Get Function: • Use of Name Get Functi...
    Odoo14 Features : • Odoo14 Features: Chart...
    Donate and Support: ko-fi.com/odoo...
    Email : odoomates@gmail.com

ความคิดเห็น • 30

  • @kashifmanzoor7949
    @kashifmanzoor7949 4 ปีที่แล้ว +4

    Thank you mates for enhancing our development skills in odoo, stay blessed.

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      Always welcome bro, keep supporting :)

  • @osamakhalid5237
    @osamakhalid5237 4 ปีที่แล้ว +1

    you are just awsome,,,hats off to you for the wonderful work,

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Thanks brother :)

  • @malazalrasheed8018
    @malazalrasheed8018 4 ปีที่แล้ว +3

    Hello Odoo Mates, I would like to thank you for this great effort in all the content you share with us.
    I kindly ask you to make a video explaining how to create a login page for a custom module, and how can I automatically generate a username and password for each user I add to the module.
    I am a beginner in Odoo, and thanks in advance.

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      thanks :)
      may i know why you look to add a new login page ?

    • @malazalrasheed8018
      @malazalrasheed8018 4 ปีที่แล้ว +1

      @@OdooMates Thanks for the response, I have multiple users I want to give them different login privileges, and does this mean that there is a way that already exists within the Odoo to do this?

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      @@malazalrasheed8018 yes for handling this in odoo we have security mechanism using groups, record rules and access rights

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      @@malazalrasheed8018 See this: th-cam.com/video/mzg3EGD_6Gw/w-d-xo.html

    • @malazalrasheed8018
      @malazalrasheed8018 4 ปีที่แล้ว +1

      @@OdooMates Thank you very very much

  • @abdelhalimkaddourguettaoui4591
    @abdelhalimkaddourguettaoui4591 4 ปีที่แล้ว +2

    thank you brother

  • @Eng.Mohammed_Ashraf
    @Eng.Mohammed_Ashraf 4 ปีที่แล้ว +1

    Thanks ❤️

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      You're welcome 😊

  • @OkyCapriatto
    @OkyCapriatto 3 ปีที่แล้ว +1

    review of name_get function from 00:00 to 3:15
    name_search function from 3:16 to 9:24

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      thanks brother

  • @saraaltahir5711
    @saraaltahir5711 4 ปีที่แล้ว +1

    I like it

  • @mahmoudelshorbagy3378
    @mahmoudelshorbagy3378 4 ปีที่แล้ว

    Hello odoo mates thanks for this effort , and i wnat to ask u about how can show data using java script in template view like template of barcode ! In the same template when scan product show details of product , can you help me !

  • @henryyao3796
    @henryyao3796 3 ปีที่แล้ว +1

    Hello, may I ask. After inheriting product.template, adding a new field, how to extend it to odoo14 native _name_search method. Thanks thanks!
    The current way of writing is to cover the method
    class product_template(models.Model):
    _inherit = 'product.template'
    product_ref = fields.Char(string="Product Ref.")
    @api.model
    def _name_search(self, name, args=None, operator='ilike', limit=100, name_get_uid=None):
    args = args or []
    domain = []
    if name:
    domain = ['|', '|', ('name', operator, name),('product_ref', operator, name),('default_code', operator, name)]
    return super(product_template, self)._search(domain + args, limit=limit, access_rights_uid=name_get_uid)

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      you can overwrite the name_search method in the custom module

  • @TheDemoncrater
    @TheDemoncrater หลายเดือนก่อน

    How is the view supposed to look?

  • @nikithaprajith2378
    @nikithaprajith2378 4 ปีที่แล้ว +1

    Hi. Thank you for the video.
    In project, if we have 2 separate employees for Initial Stage and Recruitement Stage, and if task in Initial stage is completed, how can we assign the task to automatically go from Initial to Recruitement? (i.e. from employee 1 to employee 2)
    Can you please help me with this. Again thank you.

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      Hi, you can achieve it either by an automated action from the user interface or from code by doing a a code, there is some videos recently released showing how to do from automated action. Can you check and let us know if you need any further help

    • @nikithaprajith2378
      @nikithaprajith2378 4 ปีที่แล้ว +1

      @@OdooMates Thank You. Can you tell me how I can do them by changing the codes?

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Over ride the write method and check which is the new stage ..if it is coming to new stage...just change the value of the user field also

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      It won't be clear if we say here, just over ride write method and check the stage and update

  • @nassirrachid232
    @nassirrachid232 4 ปีที่แล้ว +2

    Thanks 👍👍