工作条目¶
Work entries are created automatically in the Payroll app, based on the employee’s salary structure type, and from the Planning, Attendances, and Time Off applications.
The Work Entries dashboard of the Payroll application provides a visual overview of the individual work entries for every employee.
要打开仪表板,请导航至
。在 工作条目 仪表板上,工作条目按员工姓名的字母顺序显示。整个月份都会显示,当前日期以淡黄色突出显示。
If any entries have conflicts that need to be resolved, the dashboard defaults to filter only the Conflicting entries.
To remove the filter from the Search… bar to view all work entries, click the ✖️ (remove) icon on the Conflicting filter in the Search… bar, and all work entries appear in the list.

To change the view, so only the entries for a single day, week, or month are shown, click on Month. A drop-down menu appears with the options of Day, Week, or Month. Click on one of the options to only display data for that specific selection.
Use the ⬅️ (left arrow) and ➡️ (right arrow) icons on the left and right side of the Month button 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 Today button.
添加新的工作条目¶
If a work entry is missing and needs to be added, such as sick time, or if an employee forgot to clock in and out for a shift, click New on the Work Entry dashboard, to create a new work entry.
A Create work entry pop-up form appears.
在表格中输入以下信息:
Description: enter a short description for the work entry, such as
Sick Time
. If this field is left blank, it automatically populates once an employee is selected. 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 and year, using the < (left arrow) and > (right arrow) icons, then click on the specific day.
Next, select the time, by clicking on either the hour or minute fields at the bottom of the calendar, and select the desired time for both the hour and minutes.
When the date and time are correct for the entry, click the Apply button.
Duration: 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 appears for any request that has not been approved, such as sick time or vacation, or if there are any errors on the work entry, such as required fields being left blank. Conflicts are required to be resolved before payslips can be generated.
任何需要解决冲突的工作条目都会显示在主 工作条目 仪表板上,可通过导航至 访问。默认情况下只显示需要解决的冲突。
冲突会在每个工作条目的左上角显示一个橙色三角形。点击单个工作条目,可查看特定工作条目的日期和时间,然后点击 编辑 在弹出窗口中查看冲突详情。

在弹出的 打开 窗口中,冲突会在橙色文本框中简要说明。
弹出窗口的左侧列出 描述、员工 和 工作条目类型。右侧显示 由 和 至 日期和时间范围,以及 持续时间 字段中的总时间(以小时为单位)。
If the conflict is due to a time off request that has not been approved yet, a Time Off field appears on the left side, with the type of time off requested in the description.

休假冲突¶
The most common work entry conflicts are for time off requests that have been submitted, but not yet approved, which 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 the Time Off field.
The time off conflict can be resolved either on the work entry pop-up window, or on a detailed time off request pop-up window.
解决工作条目冲突¶
To resolve the time off conflict on this work entry pop-up window, click the Approve Time Off button to approve the time off request, and resolve the work entry conflict.
The Approve Time Off and Refuse Time Off 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 resolved.
在休假请求上解决¶
要在弹出的详细请假申请窗口中解决请假冲突,请点击 休假 输入行末尾的 内部链接 按钮,请假休假详情将出现在新的弹出窗口中。如有需要,可修改申请。
点击 批准 按钮批准请求,然后点击 保存并关闭 按钮保存更改,并返回工作条目冲突弹出窗口。

现在,隐藏了 批准休假 按钮,只有 拒绝休假 按钮可见。
如果审批有误,可点击 拒绝休假 按钮在此拒绝请求。
由于请假已在请假窗口中批准,请点击右上角的 X 关闭窗口。由于冲突已解决,冲突将从 工作条目 仪表板中消失。
重新生成工作条目¶
When regenerating work entries, any manual changes, such as resolved conflicts, are overwritten, and work entries are regenerated (or recreated) from the applications that created them.
This method for correcting a large amount of conflicts is recommended to keep all records correct. While conflicts can be resolved individually, if the conflicts are caused from another application, it is best practice to ensure the records in the other applications are also correct. That is why it is recommended to resolve these conflicts in the applications that created the conflict.
Another reason this method is recommended is because, when work entries are regenerated, the conflicts reappear, if the issue in the related application is not resolved.
First, ensure the issues are resolved in the specific applications that caused the work entry conflicts.
Next, 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 from the drop-down menu, and 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.
Generating payslips¶
To generate payslips, navigate to the time period the payslips should be generated for. Ensure the Conflicting filter is removed. When the desired pay period is displayed, click the Generate Payslips button.
小技巧
If the Generate Payslips button is not active (appears pale purple, instead of dark purple), that indicates there are conflicts, or the date selected includes dates in the future. Resolve all conflicts before generating payslips.
When the Generate Payslips button is clicked, a batch entry appears on a separate page for the time period selected.
The batch name populates the Batch Name field in a default From (date) to (date)
format.
The date range to which the payslips apply appears in the Period field, and the company appears in the Company field. It is not possible to make changes to this form.
Click the Create Draft Entry button to create the payslips for the batch.
Click the Payslips smart button at the top of the page to view all the payslips for the batch.

Printing payslips¶
To print payslips, first view the individual payslips by clicking the Payslips smart button on the batch form.
Next, select the payslips to print from the Payslips list. Click the box next to each payslip to print, or click the box to the left of the Reference column title, to select all the payslips in the list at once.
Click the Print button, and a PDF file is created with all the specified payslips.

注解
The Print button does not appear until at least one payslip is selected in the list.
待报告的休假¶
If a time off request is submitted for a time period that was already processed on a payslip, the time off request appears in the Time Off page in the Payroll app, which is accessible by navigating to
.On the Time Off page, the request appears with a status of To defer to next payslip. This is because the employee was already paid for that day, and it was logged as time spent at work, as a typical work day.
为了保持员工的请假余额正确无误,休假申请 必须 应用于下一个薪资期。这不仅能确保休假申请的余额是最新的,还能避免重做工作分录、取消工资单和重新发放工资单。
The most common scenario when this situation occurs, is when payslips are processed a day or two before the pay period ends, and an employee is unexpectedly sick on one of the last days of the pay period. The employee puts in a time off request for a day that was already processed on a payslip as a regular work day. Instead of cancelling the payslip, modifying the work entries, and reissuing the paycheck, Odoo allows for those time off requests to be applied to the following pay period, instead.
To view all the time off requests that need to be deferred to the next payslip, navigate to To Defer.
. The default filter for this report isAll time off requests that need to be applied to the following pay period appear with a Payslip State of To defer to next payslip.

推迟多次休假¶
To select the work entries to defer, click the box to the left of the work entry line. To select all work entries in the list, click the box to the left of the Employees column title, at the top of the list.
Once any work entry is selected, two buttons appear at the top of the report: a (#) Selected button, and an Actions button. The (#) Selected button indicates how many entries are currently selected.
When all the desired work entries are selected, click the Actions button, and a menu appears with several choices. Click Defer to Next Month in the list, and all selected entries are deferred to the following month.

推迟个人休假¶
Time off requests appearing on the Time Off to Report list can be deferred individually.
Click on an individual time off request, and the details for that request load.
休假申请的具体细节显示在左侧,员工提交的所有休假申请显示在右侧(包括左侧细节中的申请)。
To defer the time off request to the next payslip, click the Report to Next Month button at the top. Once processed, the Report to Next Month button disappears, and the Payslip State changes from To defer to next payslip to Computed in Current Payslip.
To go back to the Time Off to Report list, click on Time Off in the breadcrumb menu.
