I am trying to create a field using studio and compute its value. Here is what I tried,
for rec in self:
rec.x_studio_total_ic_weight = self.qty_production * self.x_studio_related_field_41o_1horg1c8a
In dependencies field, I added qty_production,product_id.
But I am getting an error while opening the form view,
ValueError: forbidden opcode(s) in 'for rec in self:\n rec.x_studio_total_ic_weight = self.qty_production * self.x_studio_related_field_41o_1horg1c8a': STORE_ATTR
How can I resolve this?

Assignment that way is not possible. Change it to:
You probably wanted to use
recinstead ofself, so i changed that too.