!4806 添加功能

Merge pull request !4806 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-08-29 01:41:47 +00:00
committed by Gitee
@@ -28,7 +28,7 @@ class YuthonShiftPlanning(models.Model):
target_year = year if (not next_date or selected_month != 12) else year + 1
start_date = datetime(target_year, target_month, 1)
next_month_first_day = start_date + relativedelta(months=1)
end_date = next_month_first_day - relativedelta(seconds=1)
end_date = next_month_first_day - timedelta(days=1)
existing_slots = self.env['planning.slot'].search([
('role_id.name', '=', '保安部'),