添加功能

This commit is contained in:
李鹏宇
2026-08-18 18:23:00 +08:00
parent 52d8e1a1fa
commit 92c7a0b7f7
3 changed files with 8 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -781,7 +781,10 @@ class AppletAttendance(Controller):
if att.workflow_id.res_model in ['hr.leave.batch', 'go.approval', 'card.approval']:
has_leave_batch_workflow = True
if not check_in_status and not check_out_status:
# 黄色(4):天河物管宽容迟到——已消耗允许迟到次数,且未达旷工
if getattr(att, 'is_late_allowed', False) and not absenteeism_card:
color_select = 4
elif not check_in_status and not check_out_status:
color_select = 3
else:
if has_leave_batch_workflow or is_rest_shift or att.shift_name == '外派':