This module provides a new report in hr_attendance to display the worked time of employees split in the following categories:
- type of day (weekday, sunday, holiday)
- daytime / nighttime
The information of a day being a holiday comes from the configured public holidays from the module hr_holidays_public.
This is meant as a helper for people interacting with external payroll systems.
auto_awesome What this module does
AI-generated from the code · Odoo 14.0Adds a Payroll Report on attendances that splits each employee's worked hours into day and night hours and labels each day as weekday, Sunday or public holiday, to help prepare external payroll.
This module extends the Attendance records so each one carries extra payroll-oriented information.
- Every attendance gets a payroll date (based on the employee's timezone), a day type (Weekday, Sunday or Public Holiday, using the public holidays configured in Odoo), and two computed hour fields: Day hours and Night hours. Day hours are simply the total worked hours minus the night hours.
- The night period is configurable per company in Settings, under the Attendance settings: a start time (default 22:00) and an end time (default 06:00), expressed in the company timezone.
- A new menu Payroll Report appears under the Attendance menu, opening a screen called Attendances for Payroll with a pivot table and a list. The pivot shows employees in rows and payroll date (by week) and day type in columns, with total hours, night hours and day hours as measures. The list can be exported to Excel.
- The attendance search filters are extended with a Payroll date filter and grouping options by Payroll date and by Date type.
- A safety check blocks saving an attendance if a single shift exceeds 24 hours, and a warning is logged for unusually long shifts.
It touches the attendance records, the company settings and the attendance reporting screens.
Depends on
Menus it adds
Models and fields (3)
- res.company · extends an existing modelhr_night_work_hour_end (End of night work time), hr_night_work_hour_start (Beginning of night work time)
- hr.attendance · extends an existing modeldate (Date), date_type, worked_hours_daytime (Day hours), worked_hours_nighttime (Night hours)
- res.config.settings · extends an existing modelhr_night_work_hour_end, hr_night_work_hour_start
Text generated by AI (DeepSeek) from reading the Odoo 14.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/hr-attendance.
terminal Installation and usage
OCA documentation · Odoo 14.0Configuration
Source · Odoo 14.0There is a new setting in the Attendance settings to set on the company the hour at which the night worktime starts and ends. The default is from 10pm to 6am.
These hours are expressed in the employee's time zone.
Usage
Source · Odoo 14.0Go to Attendances -> Attendances for Payroll, you will see a list view or a pivot view of attendances with the following values:
- date (using the check in datetime, converted to the date in the employee's timezone
- date type (normal, sunday or holiday)
- daytime work duration
- nighttime work duration
- total work duration
The list view and pivot view can be exported to a spreadsheet for further processing.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.