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
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,
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
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?
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.
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?
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
@@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
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
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
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
Yeah, it got me confused so i had to restart watching the list from beginning.
@@ramzykaram296 Sorry for the inconvenience
For more discussion about supported Odoo fields (Datatype), Please check below playlist
th-cam.com/play/PLAR8TpPnVeTT0eN9Yq2Y45r8B8Olr3MJ1.html
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
Thank you for the correction.
I am glad you solved the primary key and foreign key issue from the Many2One slide
Very nice
Continue
Thank you :)
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
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,
Very comfortable for me
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
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
@@Weblearns how can I print the docs value in XML Sir
How can I print any Xml value in console
Hi Charles,
Regarding xml value you can't print in browser console.
@@Weblearns ok sir
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?
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.
Good stuff, are you going to get into the javascript side?
Yes, Once complete basic concept.
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?
Sorry I didn't get your question. Please describe more.
@@Weblearns What I mean is display one2many field and not store to the parent model when i click save button. but it solved now.
Hello sir,
Renderer is not a constructor,this error occurs even after upgrading module and while opening a school.
plz reply sir.
Hi Kishan,
Are you using weblearns addons or your module also pls specify more like which version you are working?
hello how i use one2many many2one with widget one2many_list
Helloo sir, do you know how to fetch same One2many field for another class
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
@@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
@@thanshidhap.p4743 well, you can create new student view and add one domain in window action like marks
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
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
@@Weblearns thank you Sir
Please make a vedio on @api
Sure will add in todo list :)
Gujrati?
jai Shree Krishna mota bhai , thanks videos mate, hu odoo sikhu 6u ne aa bov kam lage 6🙏
Jai Shree Krishna bhai, Aabhar tmaro and support krta rejo :) and tamara group ma share krta rejo.
@@Weblearns chokkas bhai 😀🙂