Hi,
I need to make a float field(which have a compute function) editable.I have tried writing an inverse function for but cant get a clear idea about writing it.
demo_cost = fields.Float(string='Construction Cost', compute='_compute_demo_cost')
@api.depends('field_a', 'field_b')
def _compute_demo_cost(self):
for line in self:
line.demo_cost = line.field_a * line.field_b
Can anyone suggest me a better method or correct inverse function for making this field editable.
Thanks