Can anyone please explain ORM methods and their purpose in Odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Projekte
- MRP
Diese Frage wurde gekennzeichnet
Hi,
Try refer the following blogs.
https://www.cybrosys.com/blog/orm-methods-in-odoo-15
https://www.cybrosys.com/blog/common-orm-methods
Regards
Hi William son,
Here are some common ORM methods.
1. create/update : Create() method is used to create new records in a model.vals_list is the dictionary used to initialize new records.
2. Search/Read : Search () method is used to fetch or search the records from any specific model. You can fetch the values by passing the domain also in the search method.
3. Unlink : The unlink method is used to remove the recordset from the model. The unlink method does not take any argument, it removes the current active record of the mode.
4. copy : The copy() method is used to duplicate a recordset in the current model. This method accepts only the default argument.
5. write : The write() method is used to update the records inside the model with the provided values. This method accepts a set of dictionary values and the record is updated with these values.
6. browse : The browse() method is used to return a set of records for the IDs passed as the parameter in the current working model. This method accepts a set of IDs and returns the record sets corresponding to that IDs.
If you need any assistance or support, please don't hesitate to reach out. Our team is always here to help!"
Regards,
Team Ksolves!
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
|
0
Aug. 24
|
2204 | ||
|
|
1
Juli 24
|
3098 | ||
|
|
1
März 22
|
6142 | ||
|
|
1
Juni 21
|
4120 | ||
|
|
0
März 21
|
2837 |
See detailed Odoo ORM Tutorial: https://www.youtube.com/watch?v=8V-uOG8KkKA&list=PLqRRLx0cl0hphrDY9cvs0ZEUn-VZd9dcP