I have a model in Odoo where I want to create a calculated field called x_studio_test, and I want to set its value to 234 for all records (just in order to keep it simple and see if that work). Following the Odoo documentation, I tried the following code in the model:
for record in self: record['size'] = len(record.name)
converted into:
for record in self: record['x_studio_test'] = 234
But that does not work, the field appear as "0,00"
It is a float number and in "Dependences" -> x_studio_test
Why is not working? thank you