diff --git a/yuthon_hr_employee/models/yuthon_hr_employee.py b/yuthon_hr_employee/models/yuthon_hr_employee.py index 0032bf8f3..65b9a312e 100644 --- a/yuthon_hr_employee/models/yuthon_hr_employee.py +++ b/yuthon_hr_employee/models/yuthon_hr_employee.py @@ -449,10 +449,10 @@ class YuthonHrEmployee(models.Model): else: record.retire_years = 0 - @api.depends('normal_overtime_hours', 'weekend_overtime_hours', 'holiday_overtime_hours') + @api.depends('normal_overtime_hours', 'weekend_overtime_hours') def _compute_all_overtime_hours(self): for record in self: - record.all_overtime_hours = record.normal_overtime_hours + record.weekend_overtime_hours + record.holiday_overtime_hours + record.all_overtime_hours = record.normal_overtime_hours + record.weekend_overtime_hours def hr_employee_time(self): for record in self: diff --git a/yuthon_hr_employee/views/yuthon_hr_employee_views.xml b/yuthon_hr_employee/views/yuthon_hr_employee_views.xml index 93c408e65..b064ad884 100644 --- a/yuthon_hr_employee/views/yuthon_hr_employee_views.xml +++ b/yuthon_hr_employee/views/yuthon_hr_employee_views.xml @@ -150,9 +150,9 @@ - - - + + +