I am new in odoo and I am confused between record and recordsets. Will someone please make me understand this, with some simple examples?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am new in odoo and I am confused between record and recordsets. Will someone please make me understand this, with some simple examples?
Thanks
Hi bhuwan,
it's very simple concept which applicable for any programming language or data related operation.
the record means any single record (single row of data) and recordset means number of records ( multiple row of data) it's like data row in database table.
in the term of odoo, like a create method return single record and when you search something in model/table then it may return multiple records/recordset.
for more reference read this
https://odoo-new-api-guide-line.readthedocs.io/en/latest/environment.html
dont forget to accept and upvote answer if helpful.
thank you.
Thank You very much Haresh Kansara Sir. Will you also help me understand @api.one, @api.multi based on record and recordsets. How to use them and about 'self' in @api.one and @api.multi. I always get stuck in it. Thanks in advance sir.
And also help me know about @api.model and self use in it.
HI Bhuwan,
please refer this link It will definitely help you :
https://odoo-new-api-guide-line.readthedocs.io/en/latest/environment.html#recordset
Thank you.
You are welcome sir. I will definitely look it on.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lut 24
|
2644 | ||
Record and Recorsets (or multiple records)
Rozwiązane
|
|
1
gru 22
|
7024 | |
Getting self records for the current model.
Rozwiązane
|
|
1
cze 22
|
6320 | |
How to get the ID of the instance?
Rozwiązane
|
|
1
paź 20
|
8713 | |
Odoo Mail Sending Limit
Rozwiązane
|
|
2
gru 23
|
14644 |
Hope this will helps: http://learnopenerp.blogspot.com/