Hi,
I created a "total cost" field which depends on the costs of my product lines.
The total cost updates correctly the first time but if I change a quantity or add a product it does not update
the code :
for record in self:
cost_total = 0.0
for line in record.order_line:
cost_total += line.x_studio_cot_total
record['x_studio_float_field_3vq_1hkehadjt'] = cost_total