Hello Odoo Mates. Hope you're doing great. Is there technically any difference between creating a one2many field on patient model for appointments and creating a model appointments with required patient_id like we did in the course?
excellent video thanks for the contribution, a query in the one2many fields can create an additional field where each record that is entered in one2many is counted.
Hi, can I grant access rights to specific fields into one2many field? example You added a one2many with product_id, product_qty and appointment_id but I want that user a only add product but no set product_qty and user b set product_qty but no change product_id
if i do what you did in this video can i get this results iam taking about the xml file ,because i have only created module and added fields into it and save it in a tree view that why im asking can you please clarify me
We haven't made yet, but it easy, just enable studio mode, then open the form view, then from the right side you can drag and add new field of type one2many
@@melvinguerra9563 first you have to create a many2one field in the one2many model, like we are creating a one2many between sale.order and sale.order.line, first add a many2one field in sale.order.line to sale.order, then from sale order add a one2many field and select the added many2one field as relation, if this is not clear for you, let us know
Hi Odoo Mates. Can anyone tell me how to show "Add a section" option in my one2many line view I am using widget="section_and_note_one2many" and the "Add a section option is showing but it is working same as "add a line" Thanks
Hello, after adding products inside the item list, all of the product becomes the same name to each other. For example i put "remote, glass, phone" inside the list but when saving its all changed to "remote, remote, remote". Do you have this kind of problem before? please advice thank you!
@@OdooMates I already solved the issue, the problem is caused by wrong configuration of inverse name inside One2many fields. inverse name supposed to be the "list_id" of the product lines, but i fill it with "product_id" instead. The code at first is look like this : product_lines = fields.One2many('combine.stock.lines', 'product_id') But then i solved to this : product_lines = fields.One2many('combine.stock.lines', 'list_id') Thank you for the video! Great content you have as always brother
Hello, Thanks for your tutorials, they really help us a lot. Can you also please show how to add the Unit Price, Subtotal and Grand total to the order line like we have on the Sales Order? Thanks
@@OdooMates thanks for the information. Its not that urgent for me, but I thought that tutorial in the future could be useful for all of us. Keep Up The Good Work :)
There is a little changing in product_id instead of product.product In our HospitalAppointmentLines class write this product_id = fields.Many2one('product.category', string='Medicine')
First of all sorry for the inconvenience caused, We have tried to kept all the playlist in order, how we have created, if there is something missing or in mis order, can you help us to find it out, if so we will look and re arrange accordingly
@@OdooMates Actually i just found ordered links in the description and in your github, I'm very gratitude for your great work, one of the best tutorials in the web.
@@OdooMates thankyou mr odoo mates currently im working with odoo and this is my first time u know your video make me know more about odoo and help me to solve something like i never face before in odoo
Hello Sir, i would need few tipps for developpment, is it possible to ask you durectly or hire your service ? i would like to thank you to share your knowlegdes with us. Best regards, Sylvain
Hi Hope you are fine. I have a list of records and i want to display the names of all the records in my list in the Validation error can you plz tell me how to achieve it Thank you.
Hello when implementing this code in odoo 13, I have the following error. Sorry, you do not have permission to access documents of unknown type. no group currently allows this operation. (Operation: read, User: 2)
Any one have had this error "psycopg2.ProgrammingError: relation "solicitud_aliniamiento_definicion_paramentos" does not exist LINE 1: ...citud_aliniamiento_definicion_paramentos".id FROM "solicitud..." when adding a one2Many field
the best free tutorial really!
Thanks :)
Thank you very much, you have solved a very big problem for me❤
happy that it helps
Hello Odoo Mates. Hope you're doing great. Is there technically any difference between creating a one2many field on patient model for appointments and creating a model appointments with required patient_id like we did in the course?
both will have same effect in the db
@@OdooMates Thank you ❤️
❤️
No le doy un beso porque lo pinto, papasito me salvo la vida!! i love you
Gracias ...
excellent video thanks for the contribution, a query in the one2many fields can create an additional field where each record that is entered in one2many is counted.
❤️ is the query is about how to generate serial number for one2many lines, like 1 2 3 etc ?
@@OdooMates Yes, have a field that increases with each record in the one2many, that the field goes 1 2 3 etc.
Hi, can I grant access rights to specific fields into one2many field?
example
You added a one2many with product_id, product_qty and appointment_id but I want that user a only add product but no set product_qty and user b set product_qty but no change product_id
Ifs possible to hide a field or make a field readonly field based on user group
@@OdooMates I will investigate how to do it, you're excellent
❤️❤️ thanks for all the support ❤️
if i do what you did in this video can i get this results iam taking about the xml file ,because i have only created module and added fields into it and save it in a tree view that why im asking can you please clarify me
Please try to follow this playlist:
v15: ruclips.net/video/DKxwcMxV02U/видео.html
v14: ruclips.net/video/DJyPx5u6sd0/видео.html
v12: ruclips.net/video/BDepk0LhVuI/видео.html
Is there anyway to make this using odoo studio?
Yes, it's possible to add a one2many field using studio
@@OdooMates Is there any video explaining this?
We haven't made yet, but it easy, just enable studio mode, then open the form view, then from the right side you can drag and add new field of type one2many
@@OdooMates It says I first need a many2one field and I cant understand what It means cause I already have one
@@melvinguerra9563 first you have to create a many2one field in the one2many model, like we are creating a one2many between sale.order and sale.order.line, first add a many2one field in sale.order.line to sale.order, then from sale order add a one2many field and select the added many2one field as relation, if this is not clear for you, let us know
Hi Odoo Mates.
Can anyone tell me how to show "Add a section" option in my one2many line view
I am using widget="section_and_note_one2many" and the "Add a section option is showing but it is working same as "add a line"
Thanks
Hello, after adding products inside the item list, all of the product becomes the same name to each other. For example i put "remote, glass, phone" inside the list but when saving its all changed to "remote, remote, remote". Do you have this kind of problem before? please advice thank you!
Not yet faced the same, can we see your code
@@OdooMates I already solved the issue, the problem is caused by wrong configuration of inverse name inside One2many fields. inverse name supposed to be the "list_id" of the product lines, but i fill it with "product_id" instead.
The code at first is look like this :
product_lines = fields.One2many('combine.stock.lines', 'product_id')
But then i solved to this :
product_lines = fields.One2many('combine.stock.lines', 'list_id')
Thank you for the video! Great content you have as always brother
Hello,
Thanks for your tutorials, they really help us a lot.
Can you also please show how to add the Unit Price, Subtotal and Grand total to the order line like we have on the Sales Order?
Thanks
if it is really urgent for you, see the video of adding compute fields: ruclips.net/video/Mg80GxrKDOc/видео.html
@@OdooMates thanks for the information. Its not that urgent for me, but I thought that tutorial in the future could be useful for all of us.
Keep Up The Good Work :)
See this: ruclips.net/video/j981dytxE28/видео.html
Cómo agrego un one2many relacionado?
Hii. How to make one2many fields responsive with onchange function? Different one2many fields as per onchange function.
To update one2many in onchange, see this video: ruclips.net/video/LE7E2O4lBrQ/видео.html
if you need to control the visibilty of one2many fields, you can do it using the attrs in xml, by setting a temparory boolean field
i cannot recognise to which playlist this video belongs, can you help with this 😰
sure.
The playlist: ruclips.net/video/BDepk0LhVuI/видео.html
There is a little changing in product_id
instead of product.product
In our HospitalAppointmentLines class
write this
product_id = fields.Many2one('product.category', string='Medicine')
its upto user, to decide whether to choose the category or product. Thanks for suggestion
Odoo Mates, How can i change the height of each line of the field one2many ? style not working :(
is it really needed
@@OdooMates Is this impossible to do?
@@Kirill0094 not tried it yet
thanks
Welcome
All your playlists are not in order
Could you please write down ordered links
First of all sorry for the inconvenience caused,
We have tried to kept all the playlist in order, how we have created, if there is something missing or in mis order, can you help us to find it out, if so we will look and re arrange accordingly
@@OdooMates Actually i just found ordered links in the description and in your github, I'm very gratitude for your great work, one of the best tutorials in the web.
@@muhanadtaifour4241 Thanks for the support brother
how we can hide the selected medicine in the tree view of our o2m field
so its not appear anymore when we gonna add new medicine
Hi, It cannot be done easily.Instead you can show a warning if same product is selected twice in the lines, is that okay ?
@@OdooMates can u show a direct code for it??
im having problem with it
@@Al-yf1bh www.odoo.com/forum/help-1/question/how-to-prevent-selecting-the-same-value-in-one2many-field-in-odoo-10-131152
@@OdooMates thankyou mr odoo mates
currently im working with odoo and this is my first time
u know your video make me know more about odoo and help me to solve something like i never face before in odoo
hi sir i want to set record limit for one2many field can you help me sir
Use constrains in odoo
ruclips.net/video/50cecNF3OyQ/видео.html
but it is not working
@@viharikaarisetty7183 you can debug it right ? like whats the mistake you made ? need help in it or you feel you can solve it ? have a try brother
raise ValueError(message)
ValueError: Field `appointment_line` does not exist
any one i'm getting this error
Can i see the code ?
@@OdooMates sir after spending hours on this i just restart my computer and the error is gone
Hello Sir, i would need few tipps for developpment, is it possible to ask you durectly or hire your service ? i would like to thank you to share your knowlegdes with us. Best regards, Sylvain
Hope we have replied you in email :)
lo volvería a besar!!! muaaaackkkk jejejeje
Gracias ... si los videos son útiles, por favor, denle me gusta y espero que suscriban el canal y nos apoyen.
Hi
Hope you are fine.
I have a list of records and i want to display the names of all the records in my list in the Validation error can you plz tell me how to achieve it
Thank you.
",".join(list)
@@OdooMates can you plz explain a little bit i am stuck
Parent model can't identify related ID from child model, in this case "appointment_id"
same here
Can i get the source code i have need a custom table view and i didn't understand it how to do
Download it from here: apps.odoo.com/apps/modules/12.0/om_hospital/
larkayyy
Hello when implementing this code in odoo 13, I have the following error. Sorry, you do not have permission to access documents of unknown type. no group currently allows this operation. (Operation: read, User: 2)
Did you add the access rights for the new model ?
@@OdooMates
If I did it like you do in this video, ruclips.net/video/W5ya521uTlo/видео.html
@@juliancarrera9433 just to confirm the issue, can you switch to super user mode and see whether the same error is there or not
ruclips.net/video/pBN3IC9ipWw/видео.html
@@OdooMates I'm going to work, when I come back I will try it and tell you. Thanks a lot
sir i have send you an email kindly reply me
hope we have replied
Any one have had this error "psycopg2.ProgrammingError: relation "solicitud_aliniamiento_definicion_paramentos" does not exist
LINE 1: ...citud_aliniamiento_definicion_paramentos".id FROM "solicitud..." when adding a one2Many field
can i see the code that you have added
@@OdooMates Thank you! it was my mistake, i was using a related field that already existed in another one2Many field.
@@victordominguez7152 happy that you have found the reason and resolved the case