Hello Can anyone explain what are the retrun type of odoo base methods like, create,write,search,search_read,compute,inverse,_search, onchange, name_get etc.....
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
3
Cevaplar
907
Görünümler
Hello, let me explain in short:
- create() : returns the created record(s)
- write() : returns True if the update was successful, generally returns boolean(true,false) value
- search() : returns matching record(s)
- seach_read() : return list of dictionaries with selected fields.
- onchange() : return dictionary of field changes
- name_get(): returns list of tuples with id and display name
- compute() : don't return anything (only computes field values)
Hi, let me share some
- Create -> Object
- Write -> Boolean
- Search -> Object
- computational don't have return
- onchange can have return, example return of notification tag
further you can check here
https://www.odoo.com/documentation/18.0/developer/reference/backend/orm.html
Hi,
Here's a concise breakdown of Odoo base methods and their return types, which are essential when developing custom modules or understanding model behavior in Odoo (e.g., create, write, search, etc).
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Ağu 25
|
2430 | ||
|
1
Tem 25
|
919 | ||
|
1
Ağu 25
|
1151 | ||
|
0
May 25
|
1360 | ||
|
2
Nis 25
|
3573 |