Skip to Content
Menu
This question has been flagged
2 Replies
803 Views

Hello,

in the ORM documentation i've read that recordsets are immutable, how so ???

immutable means that you can not change a value in that recordset , but we can do that using a write method , so what do they mean by immutable ?

and what is the difference between a recordsets and sets , because in the documentation they say that recorsets are immutable but we can do operations on sets , i'm confused

Avatar
Discard
Best Answer

Hi,

Sets in python cannot be modified or changed as this type of data type is immutable.To overcome this issue odoo returns a new recordset which is combined using a set of operations if all values are from the same model.

In order to learn more about the recordsets and their operation in odoo you can refer to the link below.

https://www.cybrosys.com/blog/recordsets-and-operations-odoo

Regards

Avatar
Discard
Best Answer

recorset is not record you cant modify record but not recordset...

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 24
262
1
Oct 24
328
4
Oct 24
323
2
Oct 24
359
2
Dec 24
661