From bac9230cbc6ed63daa17303154d9768452396c95 Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Mon, 4 Aug 2025 11:21:37 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../models/hr_attendance_month.py | 24 +++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/yuthon_hr_attendance/models/hr_attendance_month.py b/yuthon_hr_attendance/models/hr_attendance_month.py
index 995bdacaf..2d189d920 100644
--- a/yuthon_hr_attendance/models/hr_attendance_month.py
+++ b/yuthon_hr_attendance/models/hr_attendance_month.py
@@ -104,26 +104,26 @@ class HrAttendanceMonthDetail(models.Model):
required_attendance_days = fields.Integer(string="应出勤天数")
actual_attendance_days = fields.Integer(string="实际出勤天数")
compensatory_leave = fields.Integer(string="调休")
- leave_of_absence = fields.Integer(string="事假")
+ leave_of_absence = fields.Integer(string="事假", digits=(16, 3))
statutory_leave = fields.Integer(string="法定假")
work_overtime = fields.Integer(string="加班")
entry_date = fields.Date(related='employee_id.entry_date', string="入职日期")
expected_date = fields.Date(string="离职日期")
- cop_leave = fields.Float(string='补休')
- annual_leave = fields.Float(string='年假')
- duty_off_leave = fields.Float(string='值班调休')
- marriage_leave = fields.Float(string='婚假')
- general_off_leave = fields.Float(string='调休')
- maternity_leave = fields.Float(string='产假')
- paternity_leave = fields.Float(string='陪产假')
- family_planning_leave = fields.Float(string='计生假')
+ cop_leave = fields.Float(string='补休', digits=(16, 3))
+ annual_leave = fields.Float(string='年假', digits=(16, 3))
+ duty_off_leave = fields.Integer(string='值班调休')
+ marriage_leave = fields.Integer(string='婚假')
+ general_off_leave = fields.Integer(string='调休')
+ maternity_leave = fields.Integer(string='产假')
+ paternity_leave = fields.Integer(string='陪产假')
+ family_planning_leave = fields.Integer(string='计生假')
bereavement_leave = fields.Float(string='丧假')
- home_visit_leave = fields.Float(string='探亲假')
- parents_meeting_leave = fields.Float(string='家长会假')
+ home_visit_leave = fields.Integer(string='探亲假')
+ parents_meeting_leave = fields.Integer(string='家长会假')
general_sick_leave = fields.Float(string='病假(普通)')
hospital_sick_leave = fields.Float(string='病假(住院期)')
recovery_sick_leave = fields.Float(string='病假(出院恢复期)')
- exam_leave = fields.Float(string='考试假')
+ exam_leave = fields.Integer(string='考试假')
holiday_id = fields.Many2one('hr.leave.type', string="假期种类")
active = fields.Boolean('Active', default=True, tracking=True)
# todo 需要什么字段往上加什么
From 51f0151db49b847dc3f1fcc73431bf374b1bfccc Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Mon, 4 Aug 2025 11:22:54 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/hr_attendance_month_views.xml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/yuthon_hr_attendance/views/hr_attendance_month_views.xml b/yuthon_hr_attendance/views/hr_attendance_month_views.xml
index 748b4e295..afe3b957c 100644
--- a/yuthon_hr_attendance/views/hr_attendance_month_views.xml
+++ b/yuthon_hr_attendance/views/hr_attendance_month_views.xml
@@ -291,11 +291,11 @@
code
action = model.button_all_put()
-
- 批量计算
-
-
- code
- action = model.button_compute_all()
-
+
+
+
+
+
+
+
\ No newline at end of file