Skip to content

Commit d37c5c2

Browse files
committed
[ADD] Payroll: Working Schedules
closes #15010 X-original-commit: 1c31d8b Signed-off-by: Felicia Kuan (feku) <[email protected]> Signed-off-by: Lara Martini (larm) <[email protected]>
1 parent cb15646 commit d37c5c2

File tree

8 files changed

+114
-55
lines changed

8 files changed

+114
-55
lines changed

content/applications/hr/employees.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ Work organization
105105

106106
Using the drop-down menu, select the default :guilabel:`Company Working Hours`. The default options
107107
are :guilabel:`Standard 40 hours/week`, :guilabel:`Appointment Resource Default Calendar`, and
108-
:guilabel:`Standard 32 hours/week (4 work days, friday free)`.
108+
:guilabel:`Standard 32 hours/week (4 work days, Friday free)`.
109109

110-
The available working hours listed are the same as the configured :ref:`working schedules
111-
<payroll/working-times>` in the **Payroll** app. Working hours can be created and modified from both
112-
the **Payroll** and **Employees** apps.
110+
The available working hours listed are the same as the configured :doc:`working schedules
111+
<payroll/working_schedules>` in the **Payroll** app. Working hours can be created and modified from
112+
both the **Payroll** and **Employees** apps.
113113

114114
Employee update rights
115115
----------------------

content/applications/hr/payroll.rst

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -66,52 +66,18 @@ Payroll
6666
Working schedules
6767
-----------------
6868

69-
To view the currently configured working schedules, go to :menuselection:`Payroll app -->
70-
Configuration --> Work Entries --> Working Schedules`. The working schedules that are available for
71-
an employee's contracts are found in this list.
69+
When creating payslips, it is sometimes necessary to add other entries for specific circumstances,
70+
like expenses, reimbursements, or deductions. These other inputs can be configured by navigating to
71+
:menuselection:`Payroll app --> Configuration --> Salary --> Other Input Types`.
7272

73-
Working schedules are company-specific. Each company **must** identify each type of working schedule
74-
they use. If the database is created for only one company, the company column is not available.
73+
To create a new input type, click the :guilabel:`New` button. Enter the :guilabel:`Description`, the
74+
:guilabel:`Code`, and which structure it applies to in the :guilabel:`Availability in Structure`
75+
field.
7576

76-
.. example::
77-
An Odoo database containing multiple companies that use a standard 40-hour work week needs to
78-
have a separate working schedule entry for each company that uses the 40-hour standard work week.
79-
80-
A database with five companies that all use a standard 40-hour work week needs to have five
81-
separate 40-hour working schedules configured.
82-
83-
.. image:: payroll/working-schedules.png
84-
:align: center
85-
:alt: All working schedules available to use currently set up in the database for the company.
86-
87-
.. _payroll/new-working-schedule:
88-
89-
New working schedule
90-
~~~~~~~~~~~~~~~~~~~~
91-
92-
To create a new working schedule, click the :guilabel:`New` button, and enter the information on the
93-
form.
94-
95-
The fields are auto-populated for a regular 40-hour work week but can be modified. First, change the
96-
name of the working time by modifying the text in the :guilabel:`Name` field. Next, make any
97-
adjustments to the days and times that apply to the new working time.
98-
99-
In the :guilabel:`Working Hours` tab, modify the :guilabel:`Day of Week`, :guilabel:`Day Period`,
100-
and :guilabel:`Work Entry Type` selections by clicking on the drop-down menus in each column and
101-
making the desired selection. The :guilabel:`Work From` and :guilabel:`Work To` columns are modified
102-
by typing in the time.
103-
104-
.. note::
105-
The :guilabel:`Work From` and :guilabel:`Work To` times must be in a 24-hour format. For example,
106-
`2:00 PM` would be entered as `14:00`.
107-
108-
If the working time should be in a two-week configuration, click the :guilabel:`Switch to 2 weeks
109-
calendar` button in the top-left. This creates entries for an :guilabel:`Even week` and an
110-
:guilabel:`Odd week`.
111-
112-
.. image:: payroll/new-working-schedule.png
113-
:align: center
114-
:alt: New working schedule form.
77+
.. important::
78+
The :guilabel:`Code` is used in the salary rules to compute payslips. If the
79+
:guilabel:`Availability in Structure` field is left blank, it indicates that the new input type
80+
is available for all payslips and is not exclusive to a specific structure.
11581

11682
.. _payroll/salary-attachment-types:
11783

@@ -391,6 +357,7 @@ form.
391357
- :doc:`payroll/contracts`
392358
- :doc:`payroll/salaries`
393359
- :doc:`payroll/work_entries`
360+
- :doc:`payroll/working_schedules`
394361
- :doc:`payroll/time_off_to_report`
395362
- :doc:`payroll/salary_attachments`
396363
- :doc:`payroll/payslips`
@@ -407,6 +374,7 @@ form.
407374
payroll/contracts
408375
payroll/salaries
409376
payroll/work_entries
377+
payroll/working_schedules
410378
payroll/time_off_to_report
411379
payroll/salary_attachments
412380
payroll/payslips

content/applications/hr/payroll/salaries.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Proceed to enter the following information in the fields:
8181
from the drop-down menu. All available working hours for the currently selected company appear in
8282
the drop-down menu. The default working hours are the :guilabel:`Standard 40 hours/week` option.
8383
If the needed working hours do not appear in the list, a :ref:`new set of default working hours
84-
can be created <new-default-working-hours>`.
84+
can be created <payroll/new-default-working-hours>`.
8585
- :guilabel:`Regular Pay Structure`: Type in the name for the regular pay structure. It is used as
8686
the default option when generating payslips.
8787
- :guilabel:`Default Work Entry Type`: Select the default work entry type which is used to create
@@ -90,7 +90,7 @@ Proceed to enter the following information in the fields:
9090
.. image:: salaries/new-structure.png
9191
:alt: New structure type form to fill out when creating a new structure type.
9292

93-
.. _new-default-working-hours:
93+
.. _payroll/new-default-working-hours:
9494

9595
New default working hours
9696
-------------------------
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
=================
2+
Working schedules
3+
=================
4+
5+
In Odoo, *working schedules* determine the hours employees are expected to work, according to their
6+
:doc:`contract <contracts>`, and informs the **Payroll** app how to compute work entries, ultimately
7+
affecting salaries and payslips. It is necessary to ensure all working schedules for employees are
8+
configured in the database.
9+
10+
.. note::
11+
In Odoo's **Payroll** app, *working schedules* are referred to as *working hours* in :ref:`salary
12+
structures <payroll/structure-types>`.
13+
14+
To view the currently configured working schedules, navigate to :menuselection:`Payroll app -->
15+
Configuration --> Working Schedules`, and the :guilabel:`Working Schedules` dashboard loads.
16+
17+
Working schedules are company-specific. In a multi-company database, each company **must** identify
18+
each type of working schedule they use. If the database is created for only one company, the
19+
:guilabel:`Company` column is not available.
20+
21+
.. example::
22+
An Odoo database containing multiple companies that use a standard 40-hour work week needs to
23+
have a separate working schedule entry for each company that uses the 40-hour standard work week.
24+
25+
A database with five companies that all use a standard 40-hour work week needs to have five
26+
separate 40-hour working schedules configured.
27+
28+
.. image:: working_schedules/working-schedules.png
29+
:alt: All working schedules available to use currently set up in the database for the company.
30+
31+
.. _payroll/new-working-schedule:
32+
33+
New working schedule
34+
====================
35+
36+
To create a new working schedule, navigate to :menuselection:`Payroll app --> Configuration -->
37+
Working Schedules`, and click :guilabel:`New`. The :guilabel:`Working Schedules` form has two
38+
sections, a general information section and a :guilabel:`Working Hours` tab listing out all the
39+
individual working hours by day and time.
40+
41+
Fill out the following information on the top-half of the form:
42+
43+
- :guilabel:`Name`: Type in the name for the new default working schedule. This should be
44+
descriptive and clear to understand, such as `Standard 20 Hours/Week`.
45+
- :guilabel:`Flexible Hours`: Tick this checkbox if employees can work different hours from the
46+
working schedule.
47+
- :guilabel:`Company Full Time`: Enter the number of hours per week an employee would need to work
48+
to be considered a full-time employee. Typically, this is approximately 40 hours, and this number
49+
affects what types of benefits an employee can receive, based on their employment status
50+
(full-time vs part-time).
51+
- :guilabel:`Average Hour Per Day`: The average hours per day field is auto-populated, based on the
52+
working hours configured in the :guilabel:`Working Hours` tab. This entry affects resource
53+
planning, since the average daily hours affect what resources can be used, and in what quantity,
54+
per workday.
55+
- :guilabel:`Work Time Rate`: This percentage is auto-generated based on the entry for the
56+
:guilabel:`Company Full Time` and the working hours configured in the :guilabel:`Working Hours`
57+
tab. This number should be between `0.00%` and `100%`, so if the percentage is above `100%`, it is
58+
an indication that the working times and/or :guilabel:`Company Full Time` hours need adjustment.
59+
- :guilabel:`Company`: Select the company that can use these new default working hours from the
60+
drop-down menu. A blank field indicates it is available for all companies.
61+
- :guilabel:`Timezone`: Select the time zone to be used for the new default working hours from the
62+
drop-down menu.
63+
64+
Next, configure the individual hours in the :guilabel:`Working Hours` tab. This tab lists the
65+
specific working hours for each day.
66+
67+
The :guilabel:`Working Hours` are auto-populated for a default 40-hour work week, with each day
68+
divided into three timed sections.
69+
70+
Every day has morning (8:00-12:00), lunch (12:00-13:00), and evening (13:00-17:00) hours configured.
71+
72+
.. note::
73+
The :guilabel:`Work From` and :guilabel:`Work To` times **must** be in a 24-hour format. For
74+
example, `2:00 PM` is entered as `14:00`.
75+
76+
Modify the :guilabel:`Day of Week`, :guilabel:`Day Period`, and :guilabel:`Work Entry Type`
77+
selections by clicking on the drop-down menus in each column and making the desired selection. The
78+
:guilabel:`Work From` and :guilabel:`Work To` columns are modified by typing in the time.
79+
80+
.. important::
81+
Keep in mind, working hours are company-specific, and **cannot** be shared between companies.
82+
Each company needs to have its own working hours set.
83+
84+
.. tip::
85+
If the working hours are not consistent each week, and the hours are on a bi-weekly schedule
86+
instead, click the :guilabel:`Switch to 2 week calendar` button at the top of the new default
87+
working hours form. This changes the :guilabel:`Working Hours` tab to display two weeks of
88+
working times that can be adjusted.
89+
90+
.. image:: working_schedules/new-working-schedule.png
91+
:alt: New working schedule form.

content/applications/hr/time_off.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ Enter the following information on that new line:
453453
- :guilabel:`Start Date`: Using the date and time picker, select the date and time the holiday
454454
starts, then click :icon:`fa-check` :guilabel:`Apply`. By default, this field is configured for
455455
the current date. The start time is set according to the start time for the company (according to
456-
the :ref:`working schedules <payroll/working-times>`). If the user's computer is set to a
456+
the :doc:`working schedules <payroll/working_schedules>`). If the user's computer is set to a
457457
different time zone, the start time is adjusted accordingly, compared to the company's time zone.
458458
- :guilabel:`End Date`: Using the date and time picker, select the date and time the holiday ends,
459459
then click :icon:`fa-check` :guilabel:`Apply`. By default, this field is configured for the
460-
current date, and the time is set to the end time for the company (according to the :ref:`working
461-
schedules <payroll/working-times>`). If the user's computer is set to a different time zone, the
462-
start time is adjusted accordingly, compared to the company's time zone.
460+
current date, and the time is set to the end time for the company (according to the :doc:`working
461+
schedules <payroll/working_schedules>`). If the user's computer is set to a different time zone,
462+
the start time is adjusted accordingly, compared to the company's time zone.
463463

464464
.. example::
465465
A company located in San Francisco operates from 9:00 AM - 6:00 PM, with an eight hour work day

content/applications/services/planning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ To create individual :guilabel:`Working Hours`, for example, for employees worki
107107
**Payroll**, if the employee's contract is configured to generate work entries based on shifts.
108108

109109
.. seealso::
110-
:ref:`Payroll documentation on working schedules <payroll/working-times>`
110+
:doc:`../hr/payroll/working_schedules`
111111

112112
Planning roles
113113
~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)