Thursday, September 3, 2026
2 changes · master
Enhancements to existing features
Companies can now optionally record unpaid breaks in employee attendance, including from the systray and kiosk checkout flow. Breaks are deducted from worked hours, daily totals and overtime, helping payroll and managers get more accurate time records with less manual correction.
Original PR description
Description of the issue/feature this PR addresses: Attendance records only represented check-in and check-out times. Unpaid breaks therefore required manual time corrections and were not…
Description of the issue/feature this PR addresses: Attendance records only represented check-in and check-out times. Unpaid breaks therefore required manual time corrections and were not consistently reflected in worked hours, overtime, the attendance systray or the kiosk flow. Current behavior before PR: - The complete check-in/check-out interval is treated as worked time. - Employees cannot review and correct attendance details from the systray. - Kiosk users cannot record their total break after checking out. Desired behavior after PR is merged: Add an optional company-level break management setting and store the total break duration on each attendance. Validate that breaks apply only to closed attendances, are non-negative and do not exceed the attendance duration. Deduct breaks from worked hours, daily attendance totals and overtime. Recompute overtime when a break changes and expose the break information in the relevant attendance and employee views. Add an attendance review to the systray showing today's sessions, check-in and check-out details, locations, breaks and total worked duration. Allow permitted users to edit attendance details using explicit Save and Discard actions. Pending changes are saved before switching sessions or checking in or out, while validation failures keep the draft available for correction. Update the kiosk checkout flow with a dedicated dialog for recording break minutes on the attendance that was just closed. Preserve manual, PIN and barcode identification and keep server-side validation authoritative if the attendance changes before the break is saved. Add backend and HOOT coverage for break validation, worked-hours and overtime calculations, attendance review editing and synchronization, and kiosk break updates. task-5252996 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Attendance breaks are now deducted consistently from worked time, overtime, work entries, payroll calculations, and the combined Timesheets/Attendance menu. This helps employees, managers, and payroll teams see accurate totals when checkout breaks are used, while keeping scheduled contract work entries intact.
Original PR description
Attendance breaks reduce worked and overtime hours in hr_attendance, but attendance-based work entries and the combined Attendance/Timesheets systray still treated the complete check-in/check-out interval as worked time. Deduct the break duration when building attendance work-entry intervals, together with refused overtime, and skip intervals fully consumed by those deductions. Keep scheduled work entries for calendar-based contracts while applying breaks to their overtime intervals. Integrate the attendance review into the Timesheets systray with separate Attendance Review and Time Recording tabs. Route checkout through the shared attendance action, preserve the Timesheets discard flow, and display total and expected hours consistently in the footer. Cover reduced and fully consumed attendance intervals, calendar-based contracts, approved overtime and downstream payroll overtime totals. task-5252996