Configuration
Time Types. The same list as in the Time Off app (Time Off chapter, section 6.1). The type of the work entry of an attendance comes from this list.
Settings. Section 1.
Automatic Rules. The list Time Rules, the same one as in the Time Off app (section 6.4 there). Odoo comes with one rule, Employee Schedule Rule, for the 9 employees. Section 8.1 explains it and shows an example.
Onboarding. The guide of section 3.4.
Automatic Rules: Overtime
A time rule watches the hours that a person worked and, when a condition is true, turns a part of the time into another time type. Click the rule to open it.
Name, Country and Company. The name of the rule. Country and Company limit it to one country or one company (empty: all).
Employees. A filter that picks the people the rule applies to. Ours says Match all records, and the link under it shows the 9 records.
Time Type. The rule looks only at the hours of this type. Ours: Work.
Working Hours. The condition. The first list is Exceed or Less than. The second list says what the hours are compared with: the daily schedule, the weekly schedule, per day or per week (the last two take a number of hours that you type). The small field after the plus-minus sign is a tolerance in hours. The line based on says whose schedule is used: the Employee Schedule (the working schedule of the card) or a Reference Schedule that you choose. Ours: Exceed the daily schedule, tolerance 0h, based on the Employee Schedule.
Work Days. The days of the week the rule applies to (Mon to Sun and Public Holidays), and the hours of the day, from 0h to 24h. Ours covers every day, all day.
Set Excess to. The time type that the extra hours get. Ours: Overtime hours non recoverable - 150%.
Allocate. A percentage, 0 in ours. The help text says: leave allocated or taken at this rate of the excess or deficit, and 100% is 1:1. With a rate above 0 and a time off type chosen for it, the extra hours are given as time off credit.
Here is an example with Sam Carter (working schedule 40 hours a week, 8 hours a day). His attendance of Friday Nov 6 lasts from 9:00 AM to 9:00 PM, 12 hours. The rule looks only at the time type Work that is set in its Time Type field, and more than one time type can be named Work. When the attendance has the Work type that the rule uses, Odoo splits the day at once. The attendance is cut to 9:00 AM to 5:00 PM (8 hours, the daily schedule) and a new attendance appears for 5:00 PM to 9:00 PM, 4 hours, with the time type Overtime hours non recoverable - 150%. The Rules Outputs tab of the first attendance lists it.
The new attendance has the short title OT - 4h and is Validated at once (Odoo validates what a rule creates). If you change the source attendance later, Odoo recalculates the outputs. Two scheduled actions also apply the rules: Attendance: Process daily time rules (once a day) and Attendance: Process weekly time rules (once a week). The overtime lines are what payroll, in Odoo Enterprise, reads.
A warning: more than one time type can have the name Work. If your rule does not react, check that the attendances have the same Work type that the Time Type of the rule shows.