test #1

Merged
administrator merged 8 commits from test into feature/odoo18 2025-03-11 14:31:55 +05:30
2 changed files with 3 additions and 4 deletions
Showing only changes of commit af9fe42e8a - Show all commits

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

View File

@ -271,18 +271,17 @@ class BiometricDeviceDetails(models.Model):
('check_out', '>=', lower_bound), ('check_out', '>=', lower_bound),
('check_out', '<=', upper_bound) ('check_out', '<=', upper_bound)
]) ])
if next_in or next_out:
continue
if get_user_id: if get_user_id:
if self.display_name == 'IN' and not check_in_today: if self.display_name == 'IN' and not check_in_today:
if next_in:
continue
hr_attendance.create({ hr_attendance.create({
'employee_id':get_user_id.id, 'employee_id':get_user_id.id,
'check_in': atten_time, 'check_in': atten_time,
}) })
get_user_id.attendance_state = 'checked_in' get_user_id.attendance_state = 'checked_in'
elif check_in_today and self.display_name != 'IN': elif check_in_today and self.display_name != 'IN':
if fields.Datetime.to_string(check_in_today.check_in) > atten_time: if fields.Datetime.to_string(check_in_today.check_in) > atten_time or next_out:
continue continue
check_in_today.write({ check_in_today.write({
'check_out': atten_time, 'check_out': atten_time,