Hi Forum!
I have a computed field called 'remain', but the problem with it is that it doesn't seem to call the function it uses.
What could be the problem?
remain = fields.Integer(string='Remain', compute='_compute_remain', store=True)
working_days = fields.Integer(compute='_compute_working_days_count')
yearly = fields.Integer(string='Yearly pool')@api.multi
@api.depends('yearly', 'working_days')
def _compute_remain(self):
for record in self:
record.remain = record.yearly - record.working_days
Thank you for your help!
Regards,
Steven