콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5 답글
10440 화면

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.

관련 게시물 답글 화면 활동
1
2월 24
2909
1
12월 22
7236
1
6월 22
6626
1
10월 20
8890
2
12월 23
15172