fix attendance
This commit is contained in:
parent
0ce7f0ac57
commit
733d34d67d
|
|
@ -367,6 +367,8 @@ class ActionReason(models.Model):
|
|||
|
||||
class Attendance(models.Model):
|
||||
_name = 'attendance.attendance'
|
||||
_rec_name = 'employee_id'
|
||||
_order = 'action_date DESC'
|
||||
|
||||
employee_id = fields.Many2one('hr.employee', string="Employee", domain="[('state', '=', 'open')]", required=True,
|
||||
ondelete='cascade', index=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue