跳至内容
菜单
此问题已终结
5 回复
10264 查看

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
2732
1
12月 22
7065
1
6月 22
6405
1
10月 20
8780
2
12月 23
14787