class DataArr(models.Model):
_inherit = 'hr.pointage'
@api.model
def write(self, vals):
# super(models.Model, self).write(vals)
record = super(DataArr, self).write(vals)
# d_check_in= vals['check_in']
d_check_out= record.check_out
return record
I wanted to get values of record edited but it return this error:
d_check_out= record.check_out
AttributeError: 'bool' object has no attribute 'check_out'
I understood the error but how to get those values to continue coding, thanks in advance :)