Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
10275 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Autore

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.

Autore

And also help me know about @api.model and self use in it.

Risposta migliore

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.

Avatar
Abbandona
Autore

You are welcome sir. I will definitely look it on.

Post correlati Risposte Visualizzazioni Attività
1
feb 24
2739
1
dic 22
7068
1
giu 22
6410
1
ott 20
8789
2
dic 23
14795