OdooWiki OCA HUB

HR Attendance Auto Close

hr_attendance_autoclose folder_open OCA/hr-attendance open_in_new
Human Resources License: AGPL-3

This module close stale attendances automatically. Without this module, when an employee forgets to check out at the end on the day and the next day the employee does not realize of that, then the error is propagated and all the attendances are wrong. With this module only the attendance with the issue is wrong, and the manager knows the system closes the attendance, not the employee

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Automatically closes attendance records that were left open too long, so forgotten check-outs no longer corrupt the following days' attendance data.

When an employee forgets to check out, their attendance stays open and the worked hours keep growing, which distorts later records. This module adds an automatic closing mechanism for those stale attendances.

  • A scheduled job named "Check Attendance" runs every hour and looks for attendance lines with no check-out time. Any line whose open worked hours exceed the company's maximum is closed automatically, using the check-in time plus the maximum hours as the check-out time.
  • The maximum is set per company (default 11 hours) in the Attendance settings, together with the reason that will be attached to automatically closed lines. A ready-made reason, "System automatic check out due to inactivity", is provided.
  • On the employee form there is a "Don't Autoclose Attendances" option, so specific employees can be excluded from this automatic closing.
  • The attendance form and list show an "open worked hours" value, which counts hours up to now while the line is still open; in the list the normal worked hours column is hidden.
  • Because automatically closed lines carry the configured reason, the usual attendance validity check is skipped for them, avoiding errors caused by old open records.

It touches hr.attendance, hr.employee, res.company and the attendance settings screen.

Required by other modules

Models and fields (4)
  • hr.employee · extends an existing modelno_autoclose (Don't Autoclose Attendances)
  • res.company · extends an existing modelhr_attendance_autoclose_reason, attendance_maximum_hours_per_day
  • hr.attendance · extends an existing modelopen_worked_hours (Worked hours)
  • res.config.settings · extends an existing modelhr_attendance_autoclose_reason, attendance_maximum_hours_per_day

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/hr-attendance.

terminal Installation and usage

OCA documentation · Odoo 17.0
  • Go to Attendances \> Configuration \> Configuration.
  • Set the maximum number of hours allowed for an attendance.
  • Go to Attendances \> Manage Attendances \> Attendances.
  • Attendance are automatically closed if they have remained open for longer than specified in the setting.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.