From ed77e63e67579b52f33448c859bbf87a4463c9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 28 Mar 2025 10:22:28 +0800 Subject: [PATCH] 1 --- yuthon_hr_employee/models/yuthon_hr_employee.py | 4 ++-- yuthon_hr_employee/views/yuthon_hr_employee_views.xml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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 @@ - - - + + +