添加功能
This commit is contained in:
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 == '外派':
|
||||
|
||||
Reference in New Issue
Block a user