diff --git a/sh_backmate_theme_adv_enterprise/static/src/views/form/form_controller.xml b/sh_backmate_theme_adv_enterprise/static/src/views/form/form_controller.xml index fa593d3a2..38d6a71d4 100644 --- a/sh_backmate_theme_adv_enterprise/static/src/views/form/form_controller.xml +++ b/sh_backmate_theme_adv_enterprise/static/src/views/form/form_controller.xml @@ -1,28 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - "o_form_status_indicator_buttons d-flex invisible" - - - + - - + + -
- - -
+
+ + + + o_control_panel d-flex flex-column gap-3 gap-lg-1 px-3 pt-2 pb-3 #{env.isSmall ? ' + + +
\ No newline at end of file diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index abe500c2b..8dbe733c2 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -149,7 +149,7 @@ class HrAttendance(models.Model): while current_date <= end_date: for employee in valid_employees: existing_attendance = self.env["hr.attendance"].search([ - ('employee_id', '=', employee.id), # 关联员工 + ('employee_id', '=', employee.id), ('current_data', '=', current_date) ], limit=1) if not existing_attendance: