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

Ғылым және технология

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/apps/modules/14...
Website: www.odoomates.tech/
Github: github.com/odoomates
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoomates

Пікірлер: 36

  • @yonasgirma1434
    @yonasgirma14342 жыл бұрын

    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 ❤

  • @arv-aravind
    @arv-aravind2 жыл бұрын

    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

  • @ou1483
    @ou14836 ай бұрын

    Thank you very much! You are really great!

  • @OdooMates

    @OdooMates

    Ай бұрын

    welcome

  • @alimohamed6654
    @alimohamed66542 жыл бұрын

    thank you so much for this videos

  • @OdooMates

    @OdooMates

    2 жыл бұрын

    You are so welcome!

  • @jh3540
    @jh35402 жыл бұрын

    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 жыл бұрын

    You might not define the rec name or name get function. See: 1. rec name: kzread.info/dash/bejne/lpOX27Kshsadpso.html 2, Name get: kzread.info/dash/bejne/k4iT1tWfh5iukbQ.html

  • @dxb_coder
    @dxb_coder3 жыл бұрын

    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 жыл бұрын

    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 :)

  • @engineerasmaa4658
    @engineerasmaa46582 жыл бұрын

    Vary Nice✔👌

  • @OdooMates

    @OdooMates

    2 жыл бұрын

    Thanks for the support ❤

  • @engineerasmaa4658

    @engineerasmaa4658

    2 жыл бұрын

    @@OdooMates You deserve support for your great explanation👏

  • @OdooMates

    @OdooMates

    2 жыл бұрын

    Happy that followers like you are there ❤

  • @VonFixxxer
    @VonFixxxer2 жыл бұрын

    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 жыл бұрын

    indeed its a good question and here is the answer for you: kzread.info/dash/bejne/hWl6uceOhNfTnag.html

  • @VonFixxxer

    @VonFixxxer

    2 жыл бұрын

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

  • @OdooMates

    @OdooMates

    2 жыл бұрын

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

  • @houdabou7879
    @houdabou78792 жыл бұрын

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

  • @OdooMates

    @OdooMates

    2 жыл бұрын

    many2one field is what you looks for ?

  • @melvinguerra9563
    @melvinguerra95632 жыл бұрын

    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 жыл бұрын

    @@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 ? kzread.info/dash/bejne/k4iT1tWfh5iukbQ.html

  • @awebamara8273
    @awebamara82732 жыл бұрын

    can you make video relations one2one

  • @OdooMates

    @OdooMates

    2 жыл бұрын

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

Келесі