Relation Between Odoo Models: Create One2Many Field | Datatype In Odoo | Odoo Fields Tutorial

  Рет қаралды 13,146

WebLearns

WebLearns

Күн бұрын

Пікірлер: 40
@Weblearns
@Weblearns 4 жыл бұрын
Dear All, Just for your information simple mistake found in this video is school_list field created in school.profile model actual name is student_list, by mistake wrote as school_list. Thank You
@ramzykaram296
@ramzykaram296 4 жыл бұрын
Yeah, it got me confused so i had to restart watching the list from beginning.
@Weblearns
@Weblearns 4 жыл бұрын
@@ramzykaram296 Sorry for the inconvenience
@Weblearns
@Weblearns 3 жыл бұрын
For more discussion about supported Odoo fields (Datatype), Please check below playlist kzbin.info/aero/PLAR8TpPnVeTT0eN9Yq2Y45r8B8Olr3MJ1 DonateUS :- ko-fi.com/weblearns paypal.me/weblearners For business inquiry :- inquiryweblearns@gmail.com Source Code :- github.com/er-harsh-dhaduk/odoo-training Subscribe - Share - Comment/Suggestion - Enjoy - DonateUS
@TheodorusEricSetiadi
@TheodorusEricSetiadi 3 жыл бұрын
Thank you for the correction.
@ramzykaram296
@ramzykaram296 4 жыл бұрын
I am glad you solved the primary key and foreign key issue from the Many2One slide
@takeasmile4279
@takeasmile4279 4 жыл бұрын
Very nice Continue
@Weblearns
@Weblearns 4 жыл бұрын
Thank you :)
@joshuadamilare2936
@joshuadamilare2936 4 жыл бұрын
Thanks for this video i am trying to fetch data from multiple models at once in odoo and use the field name for my pivot view please how can i do this
@Weblearns
@Weblearns 4 жыл бұрын
Hi Joshua, Please check below official documentation for create PIVOT view. www.odoo.com/documentation/13.0/reference/views.html#pivot As there are many other supported views also available. Thank You,
@decajohn6786
@decajohn6786 3 жыл бұрын
is it possible to make o2m as display only (like information board)? so, when we click save (create or edit), this o2m field will not be save to parent model.. I have created onchange method to display o2m fields based on another field, and also set o2m field as read only. when I click save button, o2m tree view will be deleted automatically, and these o2m tree view will not be transfer or store to parent model. i.e: display lecturer's workday and time, when selecting the lecturer's name. my temporary solution is by creating wizard. perhaps you have an alternative solution like you always did?
@Weblearns
@Weblearns 3 жыл бұрын
Sorry I didn't get your question. Please describe more.
@decajohn6786
@decajohn6786 3 жыл бұрын
@@Weblearns What I mean is display one2many field and not store to the parent model when i click save button. but it solved now.
@shomi1806
@shomi1806 2 жыл бұрын
hello how i use one2many many2one with widget one2many_list
@kevinlall7058
@kevinlall7058 4 жыл бұрын
Good stuff, are you going to get into the javascript side?
@Weblearns
@Weblearns 4 жыл бұрын
Yes, Once complete basic concept.
@charlesdonboscoa4041
@charlesdonboscoa4041 4 жыл бұрын
Hi I have a doubts on report when we design xml file inside we can put how we can print or know about docs value Sir
@Weblearns
@Weblearns 4 жыл бұрын
Hi Charles, When you select from list view or form view or from backend to trying to print record here doc means recordset so that's why we are using for loop so each record print as separate pdf file (in same pdf). Let me know if I missed anything here. Thank You
@charlesdonboscoa4041
@charlesdonboscoa4041 4 жыл бұрын
@@Weblearns how can I print the docs value in XML Sir
@charlesdonboscoa4041
@charlesdonboscoa4041 4 жыл бұрын
How can I print any Xml value in console
@Weblearns
@Weblearns 3 жыл бұрын
Hi Charles, Regarding xml value you can't print in browser console.
@charlesdonboscoa4041
@charlesdonboscoa4041 3 жыл бұрын
@@Weblearns ok sir
@kishanramani4050
@kishanramani4050 3 жыл бұрын
Hello sir, Renderer is not a constructor,this error occurs even after upgrading module and while opening a school. plz reply sir.
@Weblearns
@Weblearns 3 жыл бұрын
Hi Kishan, Are you using weblearns addons or your module also pls specify more like which version you are working?
@ridhatlati1310
@ridhatlati1310 2 жыл бұрын
Hello sir, in the previous video, when adding a Many2one relation to the student model, you didn't have to inherit the school model, now to add the One2many relation you had to inherit! is that optional or mandatory?
@Weblearns
@Weblearns 2 жыл бұрын
Well in odoo when you want to want to show child data in parent model that time you can use o2m field and here we don't need to override actual class only we need is to add field in parent model as o2m field.
@thanshidhap.p4743
@thanshidhap.p4743 3 жыл бұрын
Helloo sir, do you know how to fetch same One2many field for another class
@Weblearns
@Weblearns 3 жыл бұрын
Hi Thanshidha, As per your query please check below scenario. Using search query you will get same result. But if you will provide more info it would be good to understand like model detail and why you need to use same data in other mode. Thanks
@thanshidhap.p4743
@thanshidhap.p4743 3 жыл бұрын
@@Weblearns actually i want to fetch some date from one2many field. My module name is student details. I have a one2many field in that(name, subject, marks) And i have a sub menu failed students. So iwant to show the marks below 50 students from the student details one2many field to the failed students submenu.i don't know how to fetch data from one2many field to other class
@Weblearns
@Weblearns 3 жыл бұрын
@@thanshidhap.p4743 well, you can create new student view and add one domain in window action like marks
@magilan3734
@magilan3734 2 жыл бұрын
Very comfortable for me
@charlesdonboscoa4041
@charlesdonboscoa4041 3 жыл бұрын
How to update value inside o2m fields I have following scenario Qty = qty+field name For o2m field inside I have a qty_done field how can I update Qty value to this field
@Weblearns
@Weblearns 3 жыл бұрын
lets say sale_line is o2m field and having qty_done field and parent field is qty as mentioned above. Here you can iterate (Loop) sale_line and update like this way. qty = qty + field_name.qty (Here field_name should have integer or float value) for line in self.sale_line: line.qty_done = qty Let me know if I miss-understood. Thank You
@charlesdonboscoa4041
@charlesdonboscoa4041 3 жыл бұрын
@@Weblearns thank you Sir
@sparshjain8148
@sparshjain8148 4 жыл бұрын
Please make a vedio on @api
@Weblearns
@Weblearns 4 жыл бұрын
Sure will add in todo list :)
@sngokani
@sngokani 4 жыл бұрын
Gujrati?
@sngokani
@sngokani 4 жыл бұрын
jai Shree Krishna mota bhai , thanks videos mate, hu odoo sikhu 6u ne aa bov kam lage 6🙏
@Weblearns
@Weblearns 4 жыл бұрын
Jai Shree Krishna bhai, Aabhar tmaro and support krta rejo :) and tamara group ma share krta rejo.
@sngokani
@sngokani 4 жыл бұрын
@@Weblearns chokkas bhai 😀🙂
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2,2 МЛН
How to Add One2many Fields In Odoo
19:37
Odoo Mates
Рет қаралды 40 М.
How to Use Webhooks to Send and Receive Data in Odoo 17
24:09
Kevin Zaki
Рет қаралды 17 М.
Relational fields | Odoo Studio
5:10
Odoo
Рет қаралды 15 М.