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...
Your videos are awesome. Please keep it up. It helped me a lot. I can't thank you enough.
Glad to hear it from you ❤
Thank you very much! You are really great!
welcome
Thank you so much for the videos.
you helped me so much :)
glad that it helped and thank you for the support
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
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 :)
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
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
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!
indeed its a good question and here is the answer for you: ruclips.net/video/S5FWeUTtmmE/видео.html
@@OdooMates You are a gentleman and a scholar, many, many thanks!
Welcome brother and thanks for the support ❤️❤️❤️
How to determine a certain value among the res.partner module?
to get a value from a model or ?
@@OdooMates Yes, to specify the value needed for the module were inheriting.
@@melvinguerra9563 you mean to change the value listed in many2one field ? ruclips.net/video/aT_tsfW5HaQ/видео.html
how to get list of customer contacts in account invoice please !
many2one field is what you looks for ?
can you make video relations one2one
Unfortunately in odoo we don't have a one2one relation...
thank you so much for this videos
You are so welcome!
Vary Nice✔👌
Thanks for the support ❤
@@OdooMates You deserve support for your great explanation👏
Happy that followers like you are there ❤