Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
10122 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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.

Tekijä

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

Paras vastaus

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
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 24
2570
1
jouluk. 22
6987
1
kesäk. 22
6271
1
lokak. 20
8665
2
jouluk. 23
14585