Hello everyone,
I am currently working on overtime (OT) calculation in Odoo 19 using the Attendance module. I am trying to calculate the extra hours worked after the standard working schedule, but Odoo is not displaying the extra hours field, nor is it calculating any extra time.
Details of the Issue
I have already configured:
Employee working schedule (8 hours per day)
Attendance check-in and check-out records
Working hours set properly in the working calendar
When an employee works beyond the assigned hours (example: 8:00 AM to 6:00 PM → 2 extra hours), the extra hours field does not appear, and no additional hours are calculated.
I checked the Attendance → Worked Hours, but still the extra time is not being recognized.
What I Expect
Extra hours should be automatically computed when:
Worked Hours > Scheduled Hours
Extra hours should be visible either in:
Attendance form, or
A custom computed field added through Odoo Studio or a custom module.
What I Have Tried
Verified working calendar setup
Checked attendance rules
Ensured the latest Odoo 19 updates
Tried custom compute field for overtime
Cross-checked with older Odoo versions’ approach
Still, the extra hours do not appear.
Request for Help
Can anyone guide me on the following?
Does Odoo 19 Attendance module natively calculate extra hours?
If not, which model/fields should be extended to calculate extra hours (hr.attendance, resource.calendar.attendance, etc.)?
Any example code snippets or recommended approach to compute OT based on extra hours?
Is there any configuration I might have missed in Odoo 19?
Any help or reference would be greatly appreciated.
Thank you!