@@ -17,7 +17,7 @@ class AttendanceBannerRoute(Controller):
|
||||
('employee_id.user_id', '=', request.env.user.id),
|
||||
('check_in', '>=', month_start),
|
||||
('check_in', '<=', month_end),
|
||||
('weed', 'not in', ['星期五', '星期六'])
|
||||
('weed', 'not in', ['星期日', '星期六'])
|
||||
]
|
||||
attendance = request.env['hr.attendance'].sudo().search(domain)
|
||||
is_no_card = 0
|
||||
|
||||
@@ -67,7 +67,7 @@ class HrAttendance(models.Model):
|
||||
('employee_id.user_id', '=', rec.employee_id.user_id.id),
|
||||
('check_in', '>=', month_start),
|
||||
('check_in', '<=', month_end),
|
||||
('weed', 'not in', ['星期五', '星期六'])
|
||||
('weed', 'not in', ['星期日', '星期六'])
|
||||
]
|
||||
is_no_card = 0
|
||||
is_early_card = 0
|
||||
|
||||
Reference in New Issue
Block a user