The Time Off app handles the days that people do not work: holidays, sick days, unpaid leave and any other kind of absence. An employee asks for time off, a manager or an HR officer says yes or no, and Odoo keeps the balance of days that are left. The company can also hand out days by itself, month after month, with an accrual plan, and it can mark public holidays and days when everybody must be at work.
In this chapter we use the eight people of the Employees chapter. We create three kinds of time off (Paid Time Off, Sick Time Off and Unpaid Leave), give twenty days of Paid Time Off to each person, plan an accrual of 1.67 days a month for the manager, and record requests in all the states a request can have. You will see the calendar of the company, the approval screens, the three reports and every list in the Configuration menu.
Words used in this chapter:
Time type. A kind of absence, for example Paid Time Off. In Odoo 20 the menu is called Time Types, and the records are the same ones that the payroll side calls work entry types.
Allocation. The days that a person has the right to take. For example: 20 days of Paid Time Off from January 1 to December 31.
Request. A person asks to be away on some dates. Odoo also calls it a time off. It is approved, refused or waiting.
Balance. The days that are left: the allocation minus the days already taken or planned.
Accrual plan. A rule that adds days to an allocation as time goes by, for example 1.67 days on the first of every month.
Approver. The person who says yes or no to a request. It can be the manager of the employee, a Time Off officer, or both, depending on the time type.
Public holiday. A day that is a holiday for the whole company, such as Thanksgiving.
Mandatory day. A day when people have to be at work, for example a stock count, and where time off is not welcome.
How the pieces fit together. A time type says how requests of that kind are handled (section 6.1). If the time type needs an allocation, somebody gives days to each person (section 4). The person sends a request (section 2). The approver validates or refuses it (section 3), and the reports count the days (section 5). Public holidays and mandatory days (sections 6.5 and 6.6) are shown on the calendars and are not counted as time off.
Edition note. The Time Off app (module hr_holidays) is part of Odoo 20 Community. It needs the Employees app, the work entries module and the calendar module, and they are installed with it. Several links to Planning, Timesheets, Helpdesk and Payroll are Enterprise only, and they are listed in the last section. Nothing in this chapter needs Enterprise.
Opening the Time Off App
Click the Time Off icon on the home screen. The first screen is the calendar of all time off of the company. The menu bar has five groups:
My Time. The time off and the allocations of the user who is signed in (Days Off and Requests, section 2).
Overview. The calendar of everybody (section 1).
Management. The lists of all requests and all allocations, for managers and officers (sections 3 and 4).
Reporting. by Employee, by Type and Balance (section 5).
Configuration. Accrual Plans, Automatic Rules, Company Holidays, Mandatory Days and Time Types (section 6), and Activity Types in developer mode only. The app has no Settings page.