休息时间¶
Odoo 的 休假 应用程序是所有休假相关信息的集中枢纽。该应用程序可管理申请、余额、分配、审批和报告。
用户可以 申请休假 并查看其申请和休假余额的概览。管理人员可以 为个人、团队或整个公司分配 假期,并 批准 假期申请。
可以运行详细的 报告 来查看使用了多少假期(以及假期的种类),可以创建 应计计划,还可以设置 公共假期。
注解
请注意,只有具有特定访问权限的用户才能查看 休假 应用程序的所有方面。
所有用户都可以访问 休假 应用程序的 我的休假 和 概览 部分。所有其他部分都需要特定的访问权限。
To better understand how access rights affect the Time Off app, refer to the 新员工 document, specifically the section about configuring the Work Information tab.
参见
配置¶
为了给员工分配休假时间,并让员工申请和使用休假时间,必须先配置各种休假时间类型,然后再分配给员工(如果需要分配的话)。
休假类型¶
要查看当前配置的请假类型,请导航至
。请假类型以列表视图显示。The Time Off app comes with four preconfigured time off types: Paid Time Off, Sick Time Off, Unpaid, Compensatory Days, and Extra Hours. These can be modified to suit business needs, or used as-is.
创建休假类型¶
要创建新的休假类型,请导航至 新建 按钮,显示空白的休假类型表单。
。在这里,点击Enter the name for the particular type of time off in the blank line at the top of the form, such as
Vacation
or Bereavement
. Then, enter the following information on the form.
注解
请假类型表单中唯一 必填 字段是 休假类型 名称、请假 和 休假种类。此外,还必须配置 休假请求 和 分配请求 部分。
Time off requests section¶
This section determines how approvals are handled for time off requests for this time off type.
批准:选择休假类型需要哪种具体批准。选项包括:
无需验证: 申请此类休假时无需审批。休假申请将自动获得批准。
按休假主管:只有在此表单的 通知休假工作人员 字段中设置的 休假工作人员,才需要批准休假申请。默认情况下选择此选项。
按员工审批者:只有在 员工表单 的 工作信息 标签中设置的员工指定的请假审批者,才需要批准休假申请。
By Employee’s Approver and Time Off Officer: Both the employee’s specified time off approver and the Time Off Officer are required to approve the time off request.
Allocation requests section¶
This section determines how allocation requests are handled for this time off type.
需要分配:如果必须为员工分配休假时间,请选择 是。如果请假无需事先分配,请选择 无限制。如果选择 无限制,下列选项将不出现在表单中。
员工请求:如果员工可以申请比分配时间更多的假期,请选择 允许额外天数申请。
如果员工 不能 申请超出分配时间的假期,请选择 不允许 选项。
Example
为该员工分配了十天这种特殊类型的假期,并启用了 允许额外天数申请 选项。员工想休假 12 天。由于 允许额外天数申请 选项已启用,他们可以提交额外两天的申请。
重要
需要注意的是,申请额外的休假时间 不能 保证一定能获得休假时间。
审批:选择分配此特定休假类型所需的审批类型。
No Validation: No approvals are required when requesting additional allocations for the time off type. The allocation request is automatically approved.
By Time Off Officer: Only the specified Time Off Officer, set on this form in the Notified Time Off Officer field, is required to approve the allocation request. This option is selected, by default.
By Employee’s Approver: Only the employee’s specified approver for time off, which is set on the Work Information tab on the employee’s form, is required to approve the allocation request.
By Employee’s Approver and Time Off Officer: Both the employee’s specified time off approver and the Time Off Officer are required to approve the allocation request.
配置部分¶
This section determines all other details regarding the time off type, aside from approvals and allocations. This includes how the time off must be taken (hours, half days, or days), if the time off is visible to other users, and how the time off affects the Payroll app.
Notified Time Off Officer: Select the user who is notified and responsible for approving requests and allocations for this specific type of time off.
Take Time Off in: Select the format the time off is requested in from the drop-down menu. The options are:
Day: if time off can only be requested in full day increments (8 hours).
Half Day: if time off can only be requested in half day increments (4 hours).
Hours: if the time off can be taken in hourly increments.
Deduct Extra Hours: Enable this option if the time off request should factor in any extra time accrued by the employee.
Example
如果一名员工一周多工作了 2 小时,并申请 5 小时的休假时间,那么申请的休假时间将是 3 小时,因为多工作的两小时已被首先使用,并从申请时间中扣除。
Public Holiday Included: Enable this option if public holidays should be excluded from a time off request.
Example
An employee in the United States requests time off for the week of July 4th, for a total of five days. Since the 4th of July is a holiday in the United States, the time off request is automatically modified for four days off instead of five. That is because the holiday is included, and the user does not need to use their own vacation time for a public holiday.
This option reduces extra work for users, enabling them to make only one time off request for the entire week, instead of making two separate requests, one for the days before the holiday, and another one for the days after the holiday.
允许附加证明文件:启用此选项可允许员工在休假申请中附加文件。这在需要文件的情况下非常有用,如长期病假。
休假类型:从下拉菜单中选择休假类型,工作时间 或 缺勤。工作时间 表示休假时间计入工作时间,用于员工正在进行的任何类型的应计工作,而 缺勤 不计入任何类型的应计工作。
公司:如果在数据库中创建了多个公司,而该休假类型只适用于一个公司,则从下拉菜单中选择该公司。如果此字段留空,则休假类型适用于数据库中的所有公司。此字段 仅 出现在多公司数据库中。
Negative cap section¶
Enable the Allow Negative Cap option if employees are able to request more time off than they currently have, allowing a negative balance. If enabled, an Maximum Excess Amount field appears. In this field, enter the maximum amount of negative time allowed, in days.
Example
Sara currently has three days of the time off type Vacation
. She is planning a trip that
requires five days of time off.
The Vacation
time off type has the Allow Negative Cap option enabled, and the
Maximum Excess Amount is set to five.
These settings allow Sara to submit a request for five days of the Vacation
time off type. If
approved, her Vacation
time off balance will be negative two (-2) days.

Payroll section¶
如果休假类型应在 薪酬管理 应用程序中创建 ./hr/payroll/work_entries,请从下拉列表中选择 工作条目类型。
工时单部分¶
注解
只有当用户处于开发模式时,才会显示 时间表 部分。有关如何进入开发者模式的详细信息,请参阅 开发者模式 文档。
当员工休假并同时使用工时单时,Odoo 会在 工时单 应用程序中创建休假条目。本节定义了如何输入。
项目:选择休假类型条目出现在的项目。
任务:选择此休假类型的工时单中显示的任务。默认选项为:休假、会议 或:guilabel:
培训
。
Display option section¶
颜色:选择要在 休假 应用程序仪表板中使用的颜色。
封面图片:选择要在 休假 应用程序仪表板中使用的图标。

Accrual plans¶
有些休假时间是通过应计计划获得的,也就是说,员工每工作规定的时间(小时、天、周等),就能获得或 应计 规定的休假时间。
Example
如果一名员工每工作一周就可获得一天假期,那么他每工作一小时就可获得 0.2 天假期。在每周工作 40 小时结束时,他们将获得一个完整的休假日(8 小时)。
创建应计计划¶
要创建新的应计计划,请导航至 新建 按钮,将显示空白的应计计划表格。
。然后,点击在表格中输入以下信息:
名称:输入应计计划名称。
应计增益时间:选择员工开始累积假期的时间,可以是 应计期开始时 或 应计期结束时。
结转时间:选择员工何时收到之前获得的时间。选项包括:
年初:如果应计金额在下一年的 1 月 1 日结转,请选择此选项。
在分配日期:如果应计项目在时间分配给员工后立即滚动,请选择此项。
其他:如果其他两个选项都不适用,请选择此选项。选择后,将出现 结转日期 字段。使用两个下拉菜单选择日期,一个是日,另一个是月。
基于工作时间:如果根据员工的工作时间决定应计假期,请启用此选项。未被视为工作时间的天数不计入 Odoo 的应计计划。
Example
An employee is granted time off from an accrual plan configured to accrue one day of vacation for every five days worked. The accrual plan is based on the employee’s worked time (the Based on worked time checkbox is ticked), which means they only earn vacation time for the five weekdays they work, not the entire seven day week period.
该员工每周工作 40 小时。根据应计计划,他们每月应获得 4 天假期。
The employee takes five days off using a time off type with the Kind of Time Off set as an Absence. Because the plan grants vacation only for worked time, those five days do not count toward accrual.
As a result, the employee accrues only three vacation days that month instead of four.
Milestone Transition: This field is only visible after a minimum of two rules have been configured on the accrual plan. This selection determines when employees move up to a new milestone. If they qualify to change milestones in the middle of a pay period, decide whether the employee changes milestones Immediately or After this accrual’s period (after the current pay period).
Company: This field only appears in a multi-company database. Using the drop-down menu, select the company the accrual plan applies to. If left blank, the accrual plan is available for all companies.

规则¶
必须制定规则,以便员工从应计计划中累积休假时间。
要创建新规则,请点击灰色的 规则 部分中的 新里程碑 按钮,然后会出现 创建里程碑 模式表单。
在表格上填写以下字段:
员工累计:在此部分选择已赚取休假时间的参数。
首先,使用下拉菜单选择 天数 或 小时 作为累计时间的增量。
然后,输入所选参数的应计数值。数字格式为
X.XXXX
,因此也可以配置部分天数或小时数。最后,使用下拉菜单选择累计时间的频率。默认选项是 每小时、每天、每周、每月两次、每月、每年两次`和 :guilabel:`每年。
根据选择的选项,可能会出现其他字段。例如,如果选择 每月两次,则会出现两个附加字段,以指定里程碑发生的每月的两天。
Cap accrued time: If there is a maximum amount of time the employee can accrue with this plan, enable this option.
When enabled, two additional fields appear to the right of the checkbox. The second field is populated with either Days or Hours, matching the selection made in the Employee Accrue section.
Enter a numerical value in the first field to specify the maximum amount of time that can be accrued, in the specified increments.
Start Accruing: Enter the number and value of the time period that must pass before the employee starts to accumulate time off.
Use the first field to enter a numerical value, then set the second field to the desired time increment (either Days, Months, or Years).
结转时间:选择如何处理未使用的休假时间。选项包括:
None. Accrued time reset to 0: Any unused time off is lost.
All accrued time carried over: All unused time off is rolled over to the next calendar year.
Carry over with a maximum: Unused time off is rolled over to the next calendar year, but there is a cap. An Up to field appears if this is selected.
Enter the maximum number of Hours or Days that can roll over to the following year. The presented time increment is determined by how the Employee Accrue section is configured.
Any time off beyond this parameter is lost.
重要
If the Carry over field is set to None. Accrued time reset to 0, that rule overrides the Carry-Over Time set on the accrual plan.
If a company creates an accrual plan, granting employees time off At the start of the accrual period (i.e., the beginning of the year), and sets the Carry-Over Time on the accrual plan to At the start of the year, it allows unused vacation time to rollover to the following year.
Then, the company adds rules to the accrual plan, allocating five days of vacation, annually, on the first of the year (one week of vacation allocated on January 1st).
If the Carry over field is set to None. Accrual time reset to 0 on the Create Milestone pop-up for, any unused vacation time does not carry over, even though on the Accrual Plan form, the Carry-Over Time is set to At the start of the year.
The carry over set on the rule takes precedence over the carry over set on the accrual plan form.
Milestone cap: Tick this checkbox to set a limit on the total amount of time that can be accrued every calendar year. Enter the total maximum number of Hours or Days the employee can accrue during a year. The presented time increment is determined by how the Employee Accrue section is configured.
If the Carry over field is set to None. Accrued time reset to 0, the Milestone cap field does not appear.
Carry Over Validity: Tick this checkbox to set a time-limit on how long the employee has to use any rolled over time off. First, set the second field to the desired time-period using the drop-down menu, either Days or Months.
Next, enter the maximum number of Days or Months the employee has to use their rolled over time off. After that time period passes, any unused rolled over time will expire.
If the Carry over field is set to None. Accrued time reset to 0, the Carry Over Validity field does not appear.
Once the form is completed, click Save & Close to save the Create Milestone form, and close the modal, or click Save & New to save the form and create another milestone. Add as many milestones as desired.
Example
This milestone form is configured so the employee earns five days a year. They start to earn this time yearly, on January 1st.
The employee can never accrue more than 120 days of time off with this accrual plan. Anytime they have 120 days banked, they will stop accruing more time off.
Additionally, they can roll over up to 100 days of time off to the next year, and they have three months to use that rollover time.
Note that due to the Capped accrued time of 120 days, the employee cannot carry over any time off that exceeds 120 days in total.

Public holidays¶
Since holidays vary from country to country, or even city to city, there are no public holidays preconfigured in Odoo. To observe public or national holidays, and provide extra days off as holidays to employees, configure the observed public holidays in Odoo.
It is important to configure public holidays in Odoo, so employees are aware of the days they have off, and do not request time off on days that are already set as a public holiday (non-working days).
Additionally, all public holidays configured in the Time Off app are also reflected in any app that uses working schedules, such as Calendar, Planning, Manufacturing, and more.
Due to Odoo’s integration with other apps that use working schedules, it is considered best practice to ensure all public holidays are configured.
Create public holidays¶
To create a public holiday, navigate to
. All currently configured public holidays appear in a default list view.Click the New button, and a new line appears at the bottom of the list.
Enter the following information on that new line:
名称:输入假期名称。
公司:如果在多公司数据库中,则默认由当前公司填充此字段。**无法**编辑此字段。
注解
The Company field is hidden, by default. To view this field, click the (settings adjusts) icon in the top-right corner of the list, to the far-right of the column titles, and activate the Company selection from the drop-down menu that appears.
Start Date: Using the date and time picker, select the date and time the holiday starts, then click Apply. By default, this field is configured for the current date. The start time is set according to the start time for the company (according to the working schedules). If the user’s computer is set to a different time zone, the start time is adjusted accordingly, compared to the company’s time zone.
结束日期:使用日期和时间选择器,选择假期结束的日期和时间,然后点击 应用。默认情况下,此字段配置为当前日期,时间设置为公司的结束时间(根据 工作日程)。如果用户的计算机设置在不同的时区,则开始时间将根据公司的时区进行相应调整。
Example
位于旧金山的一家公司的工作时间为上午 9:00 至下午 6:00,每天工作 8 小时,午休 1 小时。
对于电脑时区设置为东部标准时间的纽约用户来说,创建的公共节假日显示的开始时间为中午 12:00 至晚上 9:00,其中包含三小时的时差。
同样,一个位于洛杉矶的用户,其计算机时区设置为太平洋标准时间,公共假日时间是上午 9:00 - 下午 6:00。
工作时间:如果假期只适用于有特定工作时间的员工,请从下拉菜单中选择工作时间。如果留空,则假期适用于所有员工。
工作条目类型:如果使用 薪酬管理 应用程序,此字段定义了假日的 工作条目 显示方式。从下拉菜单中选择工作条目类型。

强制工作日¶
有些公司规定了一些特殊的日子,要求特定部门或全体员工到岗,在这些特殊的日子里不允许请假。
在 Odoo 中,这些类型的天数被称为 强制天数。这些天可以配置为全公司范围,也可以配置为特定部门。配置后,指定部门或公司的员工将无法提交这些强制工作日的请假申请。
创建强制工作日¶
默认情况下,Odoo 未配置强制工作日。要创建强制工作日,请导航至
。点击左上角的 新建 按钮,列表中将出现一行空白。
Enter the following information on that new line:
名称:输入强制工作日的名称。
公司:如果在多公司数据库中,此字段可见,默认情况下,当前公司填充该字段。使用下拉菜单,选择强制工作日所属的公司。
Departments:此列默认隐藏。首先,点击右上角 颜色 旁边的 :icon:`oi-settings-adjust`(附加选项)`图标,然后勾选 :guilabel:`部门` 旁边的复选框以显示该列。
然后,从下拉菜单中选择所需的部门。可以选择多个部门,添加部门的数量没有限制。
如果该字段留空,则强制工作日适用于整个公司。
开始日期:使用日历选择器,选择强制工作日的开始日期。
结束日期:使用日历选择器,选择强制工作日的结束日期。如果创建单个强制工作日,结束日期应与开始日期相同。
Color: If desired, select a color from the available presented options. If no color is desired, select the
No color
option, represented by a white box with. The selected color appears on the main Time Off app dashboard, in both the calendar and in the legend.

概述¶
To view a color-coded schedule of the user’s time off, and/or of the team managed by them, navigate
to My Team
, in a quarterly (three month) view.
To change the time period displayed, click on the (time period) button to reveal a drop-down menu. Then, select either Today, This week, This month, This year, or a custom time period, to present the calendar in that corresponding view.
To navigate forward or backward in time, in the selected increment (Month, Week, etc.), click the (left arrow) or (right arrow) buttons to move either forward or backward in that specified amount of time. For example, if Month is selected, the arrows adjust the view by one month.
To return to a view containing the current day, click the (Focus Today) button at any time.
团队成员按字母顺序排列在各行中,他们申请的休假,无论状态如何(已批准 或 待批准),都可以在日历上可见。
每位员工都用颜色编码。员工的颜色是随机选择的,与他们申请的休假类型 不 对应。
请假状态由申请的详细颜色表示,可以是纯色(已批准),也可以是条纹(待批准)。
申请表上写明申请的天数或小时数(如果有足够的空间)。
在日历底部的 总计 行中,有一个条形图显示了预计有多少人在任意一天外出。每个条形图上的数字代表这些突出显示日子的外出员工人数。
点击请假条目,可查看具体请假条目的详细信息。请假总时数或总天数,以及请假开始和结束时间都会列出。要在模式窗口中查看请假申请的详情,请点击 视图 按钮。

报表¶
报告功能允许用户按员工或请假类型查看其团队的休假情况。这样,用户就可以查看哪些员工正在休假、休假时间长短以及休假类型。
Any report can be added to a spreadsheet, when in either the (Graph) or (Pivot) view, through the Insert in Spreadsheet button that appears in the top-left of a report.
注解
如果安装了 文件 应用程序,则会出现将报告添加到电子表格的选项。如果没有,则可将报告添加到 *仪表板*中。
按员工¶
To view a list of employee time off requests, navigate to
.默认报告以列表视图显示当年数据,按字母顺序显示所有员工。默认情况下,每个雇员的资料行都已折叠。要展开某一行,请点击该行的任意位置。
视图展开后,休假申请按休假类型排列。点击休假类型行的任意位置,可展开该行,查看该类型下的所有休假申请。
列表中显示的信息包括:员工 姓名、休假天数、开始日期、结束日期、状态 和:guilabel:描述
。

报告还可以以其他方式显示。点击页面右上角相应的按钮选项,就能以该特定方式查看数据。各种选项包括 (列表) 或默认视图、 (图表)、 (枢纽) 表格或 :guilabel:`(日历)`视图。
选择一项后,会出现针对该特定选择的附加选项。有关报告及其各种选项的更多详细信息,请参阅:doc:报告 <../essentials/reporting>
说明文档。
按类型¶
To view a graph of all time off, organized by time off type, navigate to
. This shows all time off requests in a default bar chart.将鼠标悬停在条形图上可查看该特定休假类型的 持续时间 (天数)。

单击某个条形图可进入详细列表,查看该请假类型的所有请假申请。
每个请求都会列出,并显示以下信息:员工、天数、请求类型、开始日期、结束日期、状态`和:guilabel:`描述。
报告还可以以其他方式显示。点击页面右上角相应的按钮选项,就能以这种方式查看数据。各种选项包括:icon:fa-area-chart
(图表)`(默认视图)、:icon:`oi-view-list (列表) 或 (透视图) 表格。
选择一项后,会出现该选择的其他选项。有关报告及其各种选项的详细信息,请参阅 报告 说明文档。
Balance¶
To view a pivot table of all time off balances, organized by time off type, then further organized by how many days and hours are Left and Planned, navigate to .
This shows all time off balances in a default pivot table. The employees populate the rows, while the various time off types and balances populate the columns.

参见