From b4e08fb5af742c1d99bdbc4face180ae3111fcd0 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Wed, 6 Aug 2025 10:08:37 +0800 Subject: [PATCH] =?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 --- yuthon_hr_attendance/models/yuthon_vacation_reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index 9a8273f38..bea03879b 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -22,8 +22,8 @@ class YuthonVacationReports(models.Model): other_fee_ids = fields.One2many('vacation.other.line', 'vacation_id', string='其他明细') vacation_date = fields.Date(string='日期', default=lambda self: fields.Date.today()) - leave = fields.Float(string='年假', compute='_compute_leave', store=True, digits=(16, 3)) - working_overtime = fields.Float(string='加班时', compute='_compute_working_overtime', store=True, digits=(16, 3)) + leave = fields.Char(string='年假', compute='_compute_leave', store=True, digits=(16, 3)) + working_overtime = fields.Char(string='加班时', compute='_compute_working_overtime', store=True, digits=(16, 3)) meal_fee = fields.Integer(string="误餐次数", compute='_compute_meal_fee', store=True) medical_fee = fields.Float(string="体检费", compute='_compute_medical_fee', store=True) compensatory_leave = fields.Integer(string="调休")