hi, can we achieve Maser-Detail working view which should based on 2 Models, first portion Master and below the second portion as Detail (tree/grid view but editable if possible), when user create a Master record in its portion, the Detail portion save all records with Master model's ID (like i can say Primary Key which is used as Foreign Key in Detail model), when user select a record in Master the related Detail should appear in Detail portion. I can also Edit row(s) in Detail portion ( select a record from its tree/grid view portion and this will open Form to edit). as mentioned earlier my background is Oracle Forms & Apex. be blessed.
Is there any full series like a course for biggners ..because i want to start it from scratch and I'm very new to odoo and not finding any good material plz help me
@@OdooMates @api.depends('certificate_of_competency_ids') def _get_licence(self): for rec in self: rec.licence = rec.certificate_of_competency_ids.certificate_name_competency.name[0] when i only use the code rec.licence = rec.certificate_of_competency_ids[0] it show the (id) not the name
Excellent work, you really helped me, greetings from Mexico!
Thanks for all the support
Congratulations! You explain deeply in detail. Thank you!!!
You're very welcome!
Hello, is it possible to use domain for one2many field in a tree tag inside form in Odoo?
hi, can we achieve Maser-Detail working view which should based on 2 Models, first portion Master and below the second portion as Detail (tree/grid view but editable if possible), when user create a Master record in its portion, the Detail portion save all records with Master model's ID (like i can say Primary Key which is used as Foreign Key in Detail model), when user select a record in Master the related Detail should appear in Detail portion. I can also Edit row(s) in Detail portion ( select a record from its tree/grid view portion and this will open Form to edit). as mentioned earlier my background is Oracle Forms & Apex. be blessed.
Writing to the one2many line in the onchange of the main model will do this?
See: ruclips.net/video/_O_tNBdg3HQ/видео.html
ruclips.net/video/LE7E2O4lBrQ/видео.html
@@OdooMates thanks, will check how it works. be blessed :)
Is there any full series like a course for biggners ..because i want to start it from scratch and I'm very new to odoo and not finding any good material plz help me
ruclips.net/video/BDepk0LhVuI/видео.html
Watch this video playlist one by one: ruclips.net/video/BDepk0LhVuI/видео.html
Thank u mate ❤
Watch like and support :) if you have any queries, don't hesitate to comment it out
Hallo.. do you know how to get the value of the first line in one2many field?
self.one2many_field_name[0]
@@OdooMates its pop up an error when i added more lines "raise ValueError("Expected singleton: %s" % self)"
Can you show the code that you have added
@@OdooMates
@api.depends('certificate_of_competency_ids')
def _get_licence(self):
for rec in self:
rec.licence = rec.certificate_of_competency_ids.certificate_name_competency.name[0]
when i only use the code rec.licence = rec.certificate_of_competency_ids[0] it show the (id) not the name
@@bobywyjaya3726 rec.certificate_of_competency_ids[0].name
We need more js Odoo exemple 🙏🙏
ruclips.net/video/VuUMvzycXQY/видео.html
Gd job 👍
Thanks :)
I was a discount agent in the sales order and want a discount to be found in Invoices via create Invoices
you might have to override the prepare_invoice_vals function and pass the values to invoice.
Thanks
@@OdooMates Can I see the code?
@@mazenmohamed7077 if you have pycharm, you can search for above function inside the code