Fix bug
This commit is contained in:
parent
cda392d5a0
commit
b502bd8bc0
|
|
@ -266,7 +266,7 @@ class HrAttendanceReport(models.Model):
|
|||
transaction_values['id'], transaction_values['name'] = attendance.employee_id.id, attendance.employee_id.name
|
||||
total_hours_for_two_shifts = emp_calendar.shift_one_working_hours + \
|
||||
emp_calendar.shift_two_working_hours
|
||||
lateness_reasons = reason_pool.search([('latest_date', '>=', attendance.date),
|
||||
lateness_reasons = reason_pool.search([('latest_date', '=', attendance.date),
|
||||
('employee_id', '=', employee.id),
|
||||
('state', '=', 'hr_manager')])
|
||||
# if lateness_reasons:
|
||||
|
|
|
|||
|
|
@ -92,7 +92,9 @@ class HrReasonsLateness(models.Model):
|
|||
'name': _('Attendance Transaction'),
|
||||
'res_model': 'hr.attendance.transaction',
|
||||
'view_mode': 'form',
|
||||
'domain': [('id', '=', hr_attendance_transaction.id)],
|
||||
'view_type': 'form',
|
||||
'view_id': self.env.ref('attendances.employee_attendance_transactions_form_view').id,
|
||||
'res_id': hr_attendance_transaction.id,
|
||||
'target': 'current',
|
||||
}
|
||||
return action
|
||||
|
|
|
|||
Loading…
Reference in New Issue