diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index aed12100c..88cf2715d 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -362,6 +362,7 @@ class YuthonVacationReports(models.Model): def _compute_display_date(self): for rec in self: rec.show_date = rec.vacation_date + rec.display_date = (rec.vacation_date).strftime('%Y年%m月') month_id = rec.env['base.month'].search([('name', '=', int(rec.vacation_date.month))]) rec.month_id = month_id.id year_id = rec.env['base.year'].search([('name', '=', int(rec.vacation_date.year))])