Skip to content

Commit 114cd9d

Browse files
committed
[IMP] Payroll: Updating work entries
closes #14969 X-original-commit: a9f8efa Signed-off-by: Lara Martini (larm) <[email protected]>
1 parent 099ff69 commit 114cd9d

File tree

8 files changed

+134
-139
lines changed

8 files changed

+134
-139
lines changed

content/applications/hr/payroll.rst

Lines changed: 0 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -61,111 +61,6 @@ Payroll
6161
- :guilabel:`Payslip PDF Display`: enable this option to show the payslip's PDF when the state is
6262
validated.
6363

64-
.. _payroll/work-entries:
65-
66-
Work entries
67-
============
68-
69-
A *work entry* is an individual record on an employee's timesheet. Work entries can be configured to
70-
account for all types of work and time off, such as :guilabel:`Attendance`, :guilabel:`Sick Time
71-
Off`, :guilabel:`Training`, or :guilabel:`Public Holiday`.
72-
73-
.. seealso::
74-
:doc:`Manage work entries <payroll/work_entries>`
75-
76-
Work entry types
77-
----------------
78-
79-
When creating a work entry in the *Payroll* application, or when an employee enters new time off types
80-
in *Time Off* application, a :guilabel:`Work Entry Type` needs to be selected. The list of
81-
:guilabel:`Work Entry Types` is automatically created based on localization settings set in the
82-
database.
83-
84-
To view the current work entry types available, go to :menuselection:`Payroll app --> Configuration
85-
--> Work Entries --> Work Entry Types`.
86-
87-
Each work entry type has a code to aid in the creation of payslips, and to ensure all taxes and fees
88-
are correctly entered.
89-
90-
.. image:: payroll/work-entry-types.png
91-
:align: center
92-
:alt: List of all work entry types currently available for use, with the payroll code and color.
93-
94-
New work entry type
95-
~~~~~~~~~~~~~~~~~~~
96-
97-
To create a new :guilabel:`Work Entry Type`, click the :guilabel:`New` button, and enter the
98-
information for the following sections on the form.
99-
100-
General information section
101-
***************************
102-
103-
- :guilabel:`Work Entry Type Name`: the name should be short and descriptive, such as `Sick Time` or
104-
`Public Holiday`.
105-
- :guilabel:`Payroll Code`: this code appears with the work entry type on timesheets and payslips.
106-
Since the code is used in conjunction with the *Accounting* application, it is advised to check
107-
with the accounting department for a code to use.
108-
- :guilabel:`External Code`: this code is used for exporting data to a third-party payroll service.
109-
Check with the third-party being used to determine the :guilabel:`External Code` to enter for the
110-
new work entry type.
111-
- :guilabel:`Color`: select a color for the particular work entry type.
112-
113-
Display in payslip section
114-
**************************
115-
116-
- :guilabel:`Rounding`: the rounding method selected determines how quantities on timesheet entries
117-
are displayed on the payslip.
118-
119-
- :guilabel:`No Rounding`: entry is not modified.
120-
- :guilabel:`Half Day`: entry is rounded to the closest half day amount.
121-
- :guilabel:`Day`: entry is rounded to the closest full day amount.
122-
123-
.. example::
124-
If the working time is set to an 8-hour work day (40-hour work week), and an employee enters a
125-
time of 5.5 hours on a work entry, and :guilabel:`Rounding` is set to :guilabel:`No Rounding`, the
126-
entry remains 5.5 hours. If :guilabel:`Rounding` is set to :guilabel:`Half Day`, the entry is
127-
changed to 4 hours. If it is set to :guilabel:`Day`, it is changed to 8 hours.
128-
129-
Unpaid section
130-
**************
131-
132-
- :guilabel:`Unpaid in Structures Types`: if the work entry is for work that is not paid, specify
133-
which pay structure the unpaid work entry applies to from the drop-down menu. Some situations
134-
where work is logged on a payslip, but no compensation given would be for unpaid internships,
135-
unpaid training, or volunteer work.
136-
137-
Valid for advantages section
138-
****************************
139-
140-
- :guilabel:`Meal Voucher`: if the work entry should count towards a meal voucher, check the box.
141-
- :guilabel:`Representation Fees`: if the work entry should count towards representation fees, check
142-
the box.
143-
- :guilabel:`Private Car Reimbursement`: if the work entry should count towards a private car
144-
reimbursement, check the box.
145-
146-
Time off options section
147-
************************
148-
149-
- :guilabel:`Time Off`: check this box if the work entry type can be selected for a time off
150-
request, or entry, in the *Time Off* application.
151-
152-
If :guilabel:`Time Off` is checked, a :guilabel:`Time Off Type` field appears. This field has a
153-
drop-down menu to select the specific types of time off, such as `Paid Time Off`, `Sick Time Off`,
154-
or `Extra Hours`, for example.
155-
156-
A new type of time off can be entered in the field, if the listed types of time off in the
157-
drop-down menu do **not** display the type of time off needed.
158-
159-
Reporting section
160-
*****************
161-
162-
- :guilabel:`Unforeseen Absence`: if the work entry should be visible on the unforeseen absences
163-
report, check this box.
164-
165-
.. image:: payroll/new-work-entry-type.png
166-
:align: center
167-
:alt: New work entry type form with all fields to be filled in.
168-
16964
.. _payroll/working-times:
17065

17166
Working schedules
-21 KB
Binary file not shown.

content/applications/hr/payroll/payroll_localizations/hong_kong.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ There are two checkboxes to be considered when setting up the work entry type:
271271
:alt: Hong Kong Work Entry Type.
272272

273273
.. seealso::
274-
:ref:`Creating and configuring work entry types <payroll/work-entries>`
274+
:ref:`Creating and configuring work entry types <payroll/work-entry-types>`
275275

276276
Understanding 713 Ordinance
277277
===========================

content/applications/hr/payroll/work_entries.rst

Lines changed: 128 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22
Work entries
33
============
44

5+
A *work entry* is an individual record on an employee's timesheet. Work entries can be configured to
6+
account for all types of work and time off, such as :guilabel:`Attendance`, :guilabel:`Sick Time
7+
Off`, :guilabel:`Training`, or :guilabel:`Public Holiday`.
8+
59
The **Payroll** app automatically creates work entries based on the employee's :ref:`salary
610
structure type <payroll/structure-types>`, and from the **Planning**, **Attendances**, and **Time
7-
Off** applications.
11+
Off** applications. When needed, work entries can also be :ref:`created manually
12+
<payroll/new-work-entry>`.
813

914
Work entries provide the **Payroll** app with the worked hours used to compute employee paychecks,
1015
if the employee's salary is based on work entries, as opposed to a salaried position.
1116

17+
.. note::
18+
Odoo configures several work entry types by default, but :ref:`additional work entry types can be
19+
created <payroll/work-entry-types>`, when necessary.
20+
1221
.. _payroll/work-entry-dashboard:
1322

1423
Work entry dashboard
@@ -32,28 +41,6 @@ only work entries with :ref:`conflicts <payroll/conflicts>` to be resolved.
3241
.. tip::
3342
Remove the default :guilabel:`Conflicting` filter from the search bar to view *all* work entries.
3443

35-
.. _payroll/adjust-view:
36-
37-
Adjust view
38-
-----------
39-
40-
To change the view so that only the entries for a single day, week, month, quarter, or year are
41-
shown, click the :icon:`fa-calendar` :guilabel:`(Month)(Year)` button. A drop-down menu appears with
42-
the options of :guilabel:`Today`, :guilabel:`This week`, :guilabel:`This month`, :guilabel:`This
43-
quarter`, or :guilabel:`This year`. Click on one of the options to only display data for that
44-
specific selection.
45-
46-
Use the :icon:`oi-arrow-left` :guilabel:`(left arrow)` and :icon:`oi-arrow-right` :guilabel:`(right
47-
arrow)` buttons to adjust the displayed dates. The arrows adjust the date based on the type of time
48-
selected.
49-
50-
For example, if :guilabel:`Month` is selected, the arrows move one month with each click of the
51-
arrow. If :guilabel:`Week` or :guilabel:`Day` is selected, the time moves by either a week or a day
52-
for each click of the arrow, respectively.
53-
54-
At any point, to return to a view containing the current day, click the :icon:`fa-crosshairs`
55-
:guilabel:`(Focus Today)` button.
56-
5744
.. _payroll/new-work-entry:
5845

5946
Add a new work entry
@@ -68,8 +55,7 @@ Click :guilabel:`New` on the :ref:`work entry dashboard <payroll/work-entry-dash
6855
- :guilabel:`Description`: Enter a short description for the work entry, such as `Sick Time`. The
6956
default entry is `Attendance: (Employee)`.
7057
- :guilabel:`Employee`: Select the employee the work entry is for, using the drop-down menu.
71-
- :guilabel:`Work Entry Type`: Select the :ref:`work entry type <payroll/work-entries>` using the
72-
drop-down menu.
58+
- :guilabel:`Work Entry Type`: Select the :guilabel:`Work Entry Type` using the drop-down menu.
7359
- :guilabel:`From` and :guilabel:`To`: Enter the start (:guilabel:`From`) and end (:guilabel:`To`)
7460
dates and times for the work entry.
7561

@@ -123,8 +109,8 @@ Time off conflicts
123109

124110
The most common work entry conflicts are for time off requests. Odoo automatically generates work
125111
entries for specific time periods. When time off is requested after these work entries are
126-
generated, it results in duplicate work entries for that employee (one for time off and another
127-
for regular work).
112+
generated, it results in duplicate work entries for that employee (one for time off and another for
113+
regular work).
128114

129115
If there is a conflict because a time off request is in the system for the same time that a regular
130116
work entry already exists, the time off request is entered in a :guilabel:`Time Off` field.
@@ -194,7 +180,7 @@ After conflicts are resolved, the affected work entries must be regenerated. Thi
194180
specified work entries, and overwrites the previously conflicting work entries.
195181

196182
While :ref:`conflicts <payroll/conflicts>` *can* be resolved individually, if the conflicts are
197-
caused from another application, such as **Planning** or **Attendances**, it is best practice to
183+
caused by another application, such as **Planning** or **Attendances**, it is best practice to
198184
correct the record in the application causing the conflict. The reason this method is recommended is
199185
because, if the issue in the related application is **not** resolved, when work entries are
200186
regenerated, the conflicts reappear.
@@ -227,6 +213,120 @@ finished, the pop-up window closes.
227213
The **Payroll** app then pulls the new, corrected data form the **Planning** app, and recreates
228214
the correct work entries for that employee. All conflicts for that employee are now resolved.
229215

216+
.. _payroll/work-entry-types:
217+
218+
Work entry types
219+
================
220+
221+
When :ref:`creating a work entry <payroll/new-work-entry>` in the **Payroll** application, or when a
222+
new time off type is created in the **Time Off** application, a work entry *type* needs to be
223+
selected.
224+
225+
The **Payroll** app comes with nine preconfigured work entry types, and depending on the installed
226+
:doc:`payroll localization <payroll_localizations>`, additional country-specific work entries may be
227+
configured. If there is a need for additional work entry types, they can be :ref:`created
228+
<payroll/new-work-entry-type>`.
229+
230+
To view the current work entry types available, navigate to :menuselection:`Payroll app -->
231+
Configuration --> Work Entries --> Work Entry Types`.
232+
233+
Each work entry type has a code to aid in the creation of payslips, and to ensure all taxes and fees
234+
are correctly entered.
235+
236+
.. note::
237+
Depending on the installed localization, other sections and fields may appear on the form.
238+
239+
.. image:: work_entries/work-entry-types.png
240+
:alt: List of all work entry types currently available for use, with the payroll code and color.
241+
242+
.. _payroll/new-work-entry-type:
243+
244+
New work entry type
245+
-------------------
246+
247+
To create a new work entry type, go to :menuselection:`Payroll app --> Configuration --> Work
248+
Entries --> Work Entry Types` and click :guilabel:`New`. Then, enter the information for the
249+
following sections on the form.
250+
251+
General information section
252+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
253+
254+
- :guilabel:`Work Entry Type Name`: Enter a name for the work entry type. It should be short and
255+
descriptive, such as `Sick Time` or `Training`.
256+
- :guilabel:`Payroll Code`: Enter a code for the work entry type. This code appears with the work
257+
entry type on timesheets and payslips. Since the code is used in conjunction with the
258+
**Accounting** application, it is advised to check with the accounting department for a code to
259+
use.
260+
- :guilabel:`External Code`: Enter a code to use for exporting data to a third-party payroll
261+
service. Check with the third-party being used to determine the :guilabel:`External Code` to enter
262+
for the new work entry type.
263+
- :guilabel:`Color`: Select a color for the particular work entry type. This color appears on the
264+
work entry dashboard to aid in identifying work entry types.
265+
266+
.. note::
267+
The **only** required fields for a work entry type is the :guilabel:`Work Entry Type Name` and
268+
the :guilabel:`Payroll Code`.
269+
270+
Display in payslip section
271+
~~~~~~~~~~~~~~~~~~~~~~~~~~
272+
273+
- :guilabel:`Rounding`: Select how the time entered for the work entry should be rounded. The
274+
rounding method selected determines how the worked time on timesheet entries are calculated. The
275+
options are:
276+
277+
- :guilabel:`No Rounding`: Work entries are not modified.
278+
- :guilabel:`Half Day`: Work entries are rounded to the closest half day amount.
279+
- :guilabel:`Day`: Work entries are rounded to the closest full day amount.
280+
281+
- :guilabel:`Rounding Type`: If either :guilabel:`Half Day` or :guilabel:`Day` is selected in the
282+
:guilabel:`Rounding` field, this field appears. Select either :guilabel:`Up` or :guilabel:`Down`
283+
to determine how the rounding is handled.
284+
285+
.. example::
286+
The working time is set to an 8-hour work day (a 40-hour work week). An employee enters a time of
287+
5.5 hours on a work entry.
288+
289+
If the :guilabel:`Rounding` is set to :guilabel:`No Rounding`, the work entry remains at 5.5
290+
hours.
291+
292+
If the :guilabel:`Rounding` is set to :guilabel:`Half Day`, and the :guilabel:`Rounding Type` is
293+
set to :guilabel:`Down`, the work entry is changed to 4 hours. If the :guilabel:`Rounding Type`
294+
is set to :guilabel:`Up`, the work entry is changed to 8 hours.
295+
296+
If the :guilabel:`Rounding` is set to :guilabel:`Day`, and the :guilabel:`Rounding Type` is set
297+
to :guilabel:`Down`, the work entry is changed to zero hours. If the :guilabel:`Rounding Type` is
298+
set to :guilabel:`Up`, the work entry is changed to 8 hours.
299+
300+
Unpaid section
301+
~~~~~~~~~~~~~~
302+
303+
- :guilabel:`Unpaid in Structures Types`: If the work entry type is for work that is *not paid*,
304+
specify which pay structure the unpaid work entry type applies to, using the drop-down menu. Some
305+
situations where work is logged on a payslip, but no compensation is given, such as unpaid
306+
internships, unpaid training, or volunteer work.
307+
308+
Time off options section
309+
~~~~~~~~~~~~~~~~~~~~~~~~
310+
311+
- :guilabel:`Time Off`: Tick this box if the work entry type can be selected for a time off request
312+
or time off entry, in the **Time Off** application.
313+
314+
If :guilabel:`Time Off` is active, a :guilabel:`Time Off Type` field appears. This field has a
315+
drop-down menu to select the specific types of time off, such as `Paid Time Off`, `Sick Time Off`,
316+
or `Extra Hours`. Select the :guilabel:`Time Off Type` associated with the work entry type.
317+
318+
- :guilabel:`Keep Time Off Right`: Tick this checkbox if the work entry type associated with the
319+
selected time off type allows for rolling over unused time off to the following year.
320+
321+
Reporting section
322+
~~~~~~~~~~~~~~~~~
323+
324+
- :guilabel:`Unforeseen Absence`: Tick this box if the work entry type should be visible on the
325+
unforeseen absences report.
326+
327+
.. image:: work_entries/new-work-entry-type.png
328+
:alt: New work entry type form with all fields to be filled in.
329+
230330
.. seealso::
231331
:doc:`payslips`
232332

17.2 KB
Loading

content/applications/hr/payroll/work_entry_analysis.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ time period, as well as the :guilabel:`Variation` between the two, in a percenta
3434
:alt: A pivot table comparing the work entries of the current month and the previous month.
3535

3636
.. note::
37-
If no work entries for a specific :ref:`work entry type <payroll/work-entries>` are logged for
38-
the time period, it does **not** appear on the report. That does **not** mean the work entry type
39-
does not exist, or is not configured.
37+
If no work entries for a specific :ref:`work entry type <payroll/work-entry-types>` are logged
38+
for the time period, it does **not** appear on the report. That does **not** mean the work entry
39+
type does not exist, or is not configured.
4040

4141
Additionally, if the default :guilabel:`Current month: (Month)(Year)` filter is removed from the
4242
search bar, the :guilabel:`Comparison` column does **not** appear; there must be a time-frame

content/applications/hr/time_off.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ Enter the following information on that new line:
475475
- :guilabel:`Working Hours`: If the holiday should only apply to employees who have a specific set
476476
of working hours, select the working hours from the drop-down menu. If left blank, the holiday
477477
applies to all employees.
478-
- :guilabel:`Work Entry Type`: If using the **Payroll** app, this field defines how the :ref:`work
479-
entries <payroll/work-entries>` for the holiday appear. Select the work entry type from the
478+
- :guilabel:`Work Entry Type`: If using the **Payroll** app, this field defines how the :doc:`work
479+
entries <payroll/work_entries>` for the holiday appear. Select the work entry type from the
480480
drop-down menu.
481481

482482
.. image:: time_off/holidays.png

0 commit comments

Comments
 (0)