16.How To Define Many2one Field In Odoo || Relational Fields In Odoo

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • How to add many2one field in Odoo. Steps to define many2one field in Odoo. Working of many2one field in odoo. Odoo 14 development tutorials. Create many2one field in odoo. Syntax of many2one field in odoo.
    NOTES:
    if the relational model is added from an another module, add that module to the depends of our module in the manifest file. Suppose if we are adding a many2one field to sale.order model, we have to add 'sale' module in depends of our module
    Playlist: • 1. How To Add Custom M...
    Module: apps.odoo.com/...
    Website: www.odoomates....
    Github: github.com/odo...
    Email : odoomates@gmail.com
    Facebook: / odoomate
    Twitter: / odoomates
    Support Us in Ko Fi : ko-fi.com/odoo...

Комментарии • 36

  • @yonasgirma1434
    @yonasgirma1434 2 года назад +1

    Your videos are awesome. Please keep it up. It helped me a lot. I can't thank you enough.

    • @OdooMates
      @OdooMates  2 года назад

      Glad to hear it from you ❤

  • @ou1483
    @ou1483 9 месяцев назад +1

    Thank you very much! You are really great!

  • @arv-aravind
    @arv-aravind 2 года назад +1

    Thank you so much for the videos.
    you helped me so much :)

    • @OdooMates
      @OdooMates  2 года назад

      glad that it helped and thank you for the support

  • @dxb_coder
    @dxb_coder 3 года назад +1

    Hello, thank you so much for the video.
    When we add a new relational field, shouldn't we specify something in the depends section inside the manifest file?
    Regards

    • @OdooMates
      @OdooMates  3 года назад +1

      if the relational model is existing or added from the another module, we have to specify that module as a dependent module for our module. Thanks for asking, i will update the video description, so that it will help others :)

  • @jh3540
    @jh3540 2 года назад +1

    hey, thanks for the video. I wanted to ask.
    so I have 3 models, "modelA" "modelB" and "modelC"
    "modelA" has a many2one field from "modelB" records, it's called "your_name"
    "modelC" has a char field, called "names"
    I've created a function on "modelA" to create a record , and pass modelA.your_name value to "names" field on "modelC".
    when I execute the code, instead of showing the value, it just shows "modelB(2)", or "modelB(3)", the numbers changes according to the value from the your_name field.
    can you tell me how to make it show the value? all I know that this happens because the "modelC" did'nt know the values from "modelB".
    p.s does myexplanation clear? pls let meknow. thanks

    • @OdooMates
      @OdooMates  2 года назад +1

      You might not define the rec name or name get function.
      See:
      1. rec name: ruclips.net/video/d_cyPsVc7vg/видео.html
      2, Name get: ruclips.net/video/aT_tsfW5HaQ/видео.html

  • @VonFixxxer
    @VonFixxxer 2 года назад +2

    Your series are amazing! But I have one little, perhaps stupid, question: How does Odoo engine know which data are you asking for when making that many2one field? Is it because when using res.partner as comodel_name, contacts ids are the only kind of data you are going to get?
    thanks!

    • @OdooMates
      @OdooMates  2 года назад +1

      indeed its a good question and here is the answer for you: ruclips.net/video/S5FWeUTtmmE/видео.html

    • @VonFixxxer
      @VonFixxxer 2 года назад +1

      @@OdooMates You are a gentleman and a scholar, many, many thanks!

    • @OdooMates
      @OdooMates  2 года назад +1

      Welcome brother and thanks for the support ❤️❤️❤️

  • @melvinguerra9563
    @melvinguerra9563 2 года назад +1

    How to determine a certain value among the res.partner module?

    • @OdooMates
      @OdooMates  2 года назад

      to get a value from a model or ?

    • @melvinguerra9563
      @melvinguerra9563 2 года назад +1

      @@OdooMates Yes, to specify the value needed for the module were inheriting.

    • @OdooMates
      @OdooMates  2 года назад

      @@melvinguerra9563 you mean to change the value listed in many2one field ? ruclips.net/video/aT_tsfW5HaQ/видео.html

  • @houdabou7879
    @houdabou7879 2 года назад +1

    how to get list of customer contacts in account invoice please !

    • @OdooMates
      @OdooMates  2 года назад

      many2one field is what you looks for ?

  • @awebamara8273
    @awebamara8273 2 года назад +1

    can you make video relations one2one

    • @OdooMates
      @OdooMates  2 года назад +1

      Unfortunately in odoo we don't have a one2one relation...

  • @alimohamed6654
    @alimohamed6654 3 года назад

    thank you so much for this videos

  • @engineerasmaa4658
    @engineerasmaa4658 2 года назад +1

    Vary Nice✔👌

    • @OdooMates
      @OdooMates  2 года назад +1

      Thanks for the support ❤

    • @engineerasmaa4658
      @engineerasmaa4658 2 года назад +1

      @@OdooMates You deserve support for your great explanation👏

    • @OdooMates
      @OdooMates  2 года назад +1

      Happy that followers like you are there ❤