Hi everyone, another question. I am trying to setup a compute field that depends on the first_name attribute of my Person model, and has the value "Hi, ". I was able to achieve it in the following way, by looping through the "self" recordset:
```
hello_msg = fields.Char(string="hello", compute='_test_hello')
@api.depends("first_name")
def _test_hello(self):
for rec in self:
rec.hello_msg= 'Hi, ' + rec.name
```
However, it seems like any time I enter my list view, this field is recomputed for ALL my records, not just the one that I changed in the form view. This is just a toy problem, but for my actual use cases, this will cause a significant computational overhead. I wanted to trigger this function ONLY when a record changes, and only for that record.
Is there a way to achieve this?
Thanks