工作条目¶
The Payroll app automatically creates work entries based on the employee’s salary structure type, and from the Planning, Attendances, and Time Off applications.
Work entries provide the Payroll app with the worked hours used to compute employee paychecks, if the employee’s salary is based on work entries, as opposed to a salaried position.
Work entry dashboard¶
The Work Entries dashboard of the Payroll app provides a visual overview of the individual work entries for every employee.
要打开仪表板,请导航至
。在 工作条目 仪表板上,工作条目按员工姓名的字母顺序显示。整个月份都会显示,当前日期以淡黄色突出显示。
The Work Entry dashboard has a default Conflicting filter, which displays only work entries with conflicts to be resolved.

小技巧
Remove the default Conflicting filter from the search bar to view all work entries.
Adjust view¶
To change the view so that only the entries for a single day, week, month, quarter, or year are shown, click the (Month)(Year) button. A drop-down menu appears with the options of Today, This week, This month, This quarter, or This year. Click on one of the options to only display data for that specific selection.
Use the (left arrow) and (right arrow) buttons to adjust the displayed dates. The arrows adjust the date based on the type of time selected.
例如,如果选择 月,则每点击一次箭头,箭头移动一个月。如果选择了 周 或 日,则每点击一次箭头,时间就分别移动一周或一天。
At any point, to return to a view containing the current day, click the (Focus Today) button.
添加新的工作条目¶
If a work entry is missing, such as sick time, or if an employee forgot to clock in and out for a shift, a new work entry must be created for the missing shift.
Click New on the work entry dashboard, and a blank Create work entry pop-up form appears. Enter the following information on the form:
Description: Enter a short description for the work entry, such as
Sick Time
. The default entry isAttendance: (Employee)
.Employee: Select the employee the work entry is for, using the drop-down menu.
Work Entry Type: Select the work entry type using the drop-down menu.
From and To: Enter the start (From) and end (To) dates and times for the work entry.
First, click on either the From or To line to reveal a calendar pop-up window. Select the date by navigating to the correct month, then click on the specific day to select it.
Next, select the time, by clicking on either the hour or minute fields at the bottom of the calendar, and set the desired time.
When the date and time for the entry are correct, click the Apply button.
Duration: This field displays the hours based on the To and From entries. Modifying this field modifies the To field (the From field does not change).
输入所需信息后,点击 保存并关闭 以保存条目并关闭弹窗表单。

冲突¶
A conflict occurs when a request has not been approved, such as sick time or vacation, or if there are any errors on the work entry. Conflicts that span the current pay period being processed must be resolved before payslips can be generated.
任何需要解决冲突的工作条目都会显示在主 工作条目 仪表板上,可通过导航至 访问。默认情况下只显示需要解决的冲突。
冲突会在每个工作条目的左上角显示一个橙色三角形。点击单个工作条目,可查看特定工作条目的日期和时间,然后点击 编辑 在弹出窗口中查看冲突详情。

在弹出的 打开 窗口中,冲突会在橙色文本框中简要说明。
弹出窗口的左侧列出 描述、员工 和 工作条目类型。右侧显示 由 和 至 日期和时间范围,以及 持续时间 字段中的总时间(以小时为单位)。
休假冲突¶
The most common work entry conflicts are for time off requests. Odoo automatically generates work entries for specific time periods. When time off is requested after these work entries are generated, it results in duplicate work entries for that employee (one for time off and another for regular work).
If there is a conflict because a time off request is in the system for the same time that a regular work entry already exists, the time off request is entered in a Time Off field.
Conflicts can be resolved either directly on the work entry or in the detailed time off request form.
解决工作条目冲突¶
If no additional details are needed to determine if a time off request should be approved or refused, the time off conflict can be resolved directly from the work entry pop-up window.
Click either the Refuse Time Off or Approve Time Off buttons to refuse or approve the time off request, then the two buttons disappear. Click the Save & Close button to close the pop-up window.
The conflict disappears from the Work Entry dashboard, since the conflict is now resolved.

注解
If the time off is approved, the status of the work entry conflict changes to Cancelled. If the time off is refused, the status changes to Draft.
在休假请求上解决¶
If more details are needed to make a decision about the time off request, hover over the entry in the Time Off field, and click the (Internal Link) icon that appears at the end of the line. This causes an Open: Time Off pop-up window to load, with all the time off request details. Click either the Approve or Refuse buttons to approve or refuse the request.
要在弹出的详细请假申请窗口中解决请假冲突,请点击 休假 输入行末尾的 内部链接 按钮,请假休假详情将出现在新的弹出窗口中。如有需要,可修改申请。
点击 批准 按钮批准请求,然后点击 保存并关闭 按钮保存更改,并返回工作条目冲突弹出窗口。

现在,隐藏了 批准休假 按钮,只有 拒绝休假 按钮可见。
如果审批有误,可点击 拒绝休假 按钮在此拒绝请求。
由于请假已在请假窗口中批准,请点击右上角的 X 关闭窗口。由于冲突已解决,冲突将从 工作条目 仪表板中消失。
重新生成工作条目¶
After conflicts are resolved, the affected work entries must be regenerated. This recreates the specified work entries, and overwrites the previously conflicting work entries.
While conflicts can be resolved individually, if the conflicts are caused from another application, such as Planning or Attendances, it is best practice to correct the record in the application causing the conflict. The reason this method is recommended is because, if the issue in the related application is not resolved, when work entries are regenerated, the conflicts reappear.
First, ensure the issues are resolved in the specific applications that caused the work entry conflicts. Once the conflicts have been resolved in the corresponding apps, open the work entry dashboard by navigating to
.Click the Regenerate Work Entries button at the top of the Work Entries dashboard, and a Work Entry Regeneration pop-up window appears.
Select the Employees to regenerate work entries for, using the drop-down menu. Adjust the From and To fields, so the correct date range is displayed.
点击 重新生成工作条目 按钮,系统将重新创建工作条目。完成后,弹窗会自动关闭。

Example
An employee has incorrect work entries generated from the Planning app because they were incorrectly assigned to two work stations simultaneously. This should be fixed in the Planning app, instead of the Payroll app.
To correct this issue, modify the employee’s schedule in the Planning app, so they are correctly assigned to only one work station. Then, in the Payroll app, regenerate work entries for that employee, for that specific time period.
The Payroll app then pulls the new, corrected data form the Planning app, and recreates the correct work entries for that employee. All conflicts for that employee are now resolved.