Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
10392 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
2818
1
ธ.ค. 22
7180
1
มิ.ย. 22
6514
How to get the ID of the instance? แก้ไขแล้ว
1
ต.ค. 20
8862
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
15005