Skip to content

Commit fffad17

Browse files
committed
[IMP] Time Off: Updating Allocations
closes #14321 X-original-commit: 7133126 Signed-off-by: Lara Martini (larm) <[email protected]>
1 parent 6c247fc commit fffad17

File tree

3 files changed

+65
-44
lines changed

3 files changed

+65
-44
lines changed

content/applications/hr/time_off/allocations.rst

Lines changed: 65 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Allocations
33
===========
44

5+
Allocations are amounts of time off given to employees, either granted immediately or earned as the
6+
employee works, through an accrual plan.
7+
58
Once :ref:`time off types <time_off/time-off-types>` and :ref:`accrual plans
69
<time_off/accrual-plans>` have been configured, the next step is to *allocate*, or give, time off to
710
employees.
@@ -26,15 +29,17 @@ Click :guilabel:`New` to allocate time off, and a blank :guilabel:`Allocation` f
2629
After entering a name for the allocation on the first blank field of the form, enter the following
2730
information:
2831

32+
- :guilabel:`Name`: Enter a name for the allocation, typically containing the type of time off, and
33+
the period of time it is available (example: `Annual Vacation Time Off - 2025`).
2934
- :guilabel:`Time Off Type`: Using the drop-down menu, select the type of time off that is being
3035
allocated to the employees.
31-
- :guilabel:`Allocation Type`: Select either :guilabel:`Regular Allocation` or :guilabel:`Accrual
32-
Allocation`. If the allocation is **not** based on an :ref:`accrual plan
33-
<time_off/accrual-plans>`, select :guilabel:`Regular Allocation`.
36+
- :guilabel:`Allocation Type`: Select how the allocation is granted. Choose :guilabel:`Regular
37+
Allocation` if the time off is given immediately, or :guilabel:`Accrual Allocation` if the time
38+
off is earned through an :ref:`accrual plan <time_off/accrual-plans>`.
3439
- :guilabel:`Accrual Plan`: If :guilabel:`Accrual Allocation` is selected for the
3540
:guilabel:`Allocation Type`, the :guilabel:`Accrual Plan` field appears. Using the drop-down menu,
36-
select the accrual plan with which the allocation is associated. An accrual plan **must** be
37-
selected for an :guilabel:`Accrual Allocation`.
41+
select the accrual plan associated with the allocation. An accrual plan is **required** when using
42+
the :guilabel:`Accrual Allocation` type.
3843
- :guilabel:`Validity Period/Start Date`: If :guilabel:`Regular Allocation` is selected for the
3944
:guilabel:`Allocation Type`, this field is labeled :guilabel:`Validity Period`. If
4045
:guilabel:`Accrual Allocation` is selected for the :guilabel:`Allocation Type`, this field is
@@ -45,46 +50,39 @@ information:
4550
allocation, and click on the date to select it.
4651

4752
If the allocation expires, select the expiration date in the next date field. If the time off does
48-
*not* expire, leave the second date field blank. :guilabel:`No Limit` appears in the field if no
49-
date is selected.
53+
*not* expire, leave the second date field blank.
5054

5155
If :guilabel:`Accrual Allocation` is selected for the :guilabel:`Allocation Type`, this second
5256
field is labeled :guilabel:`Run until`.
53-
54-
.. important::
55-
If the :guilabel:`Start Date` entered is in the middle of a period of time, such as the middle
56-
of the month, Odoo applies the allocation to the beginning or end of the period, depending on
57-
the *Accrued Gain Time* entered on the :ref:`accrual plan <time_off/accrual-plans>` (either *At
58-
the start of the accrual period*, or *At the end of the accrual period*) instead of the
59-
specific date entered.
60-
61-
For example, an allocation is created, and references an accrual plan that grants time *At the
62-
start of the accrual period*, monthly, on the first of the month.
63-
64-
On the allocation form, the :guilabel:`Allocation Type` is set to :guilabel:`Accrual
65-
Allocation`, and the :guilabel:`Start Date` entered is `06/16/24`.
66-
67-
Odoo's **Time Off** app retroactively applies the allocation to the beginning of the time
68-
period entered in the :guilabel:`Start Date`.
69-
70-
Therefore, this allocation accrues time from `06/01/24`, rather than `06/16/24`.
71-
72-
Additionally, if on the accrual form, the allocation references an accrual plan that grants
73-
time *`At the end of the accrual period*, the allocation accrues time from `7/01/24` rather
74-
than `6/18/24`.
75-
7657
- :guilabel:`Allocation`: Enter the amount of time that is being allocated to the employees. This
7758
field displays the time in either :guilabel:`Hours` or :guilabel:`Days`, depending on how the
7859
selected :ref:`Time Off Type <time_off/time-off-types>` is configured.
60+
- :guilabel:`Employee`: Using the drop-down menu, select the employee being allocated the time off.
7961
- :guilabel:`Add a reason...`: If any description or note is necessary to explain the time off
8062
allocation, enter it in this field at the bottom of the form.
8163

8264
.. image:: allocations/new-allocation.png
8365
:alt: A new allocation form with all the fields filled out for the annual two week vacation
8466
granted to all employees.
8567

86-
Multiple Allocations
87-
--------------------
68+
Accrual start date behavior
69+
---------------------------
70+
71+
If the :guilabel:`Start Date` is in the middle of an accrual period, Odoo adjusts it to the start or
72+
end of that period based on the *Accrued Gain Time* entered on the :ref:`accrual plan
73+
<time_off/accrual-plans>`.
74+
75+
.. example::
76+
- *At the start of the accrual period*: A :guilabel:`Start Date` of `06/16/25` applies from
77+
`06/01/25`
78+
- *At the end of the accrual period*: A :guilabel:`Start Date` of `06/18/25` applies from
79+
`07/01/25`
80+
81+
Automatic adjustments on the start date to either the begining or end of an accural period ensures
82+
accruals align with the defined period boundaries, rather than the exact date entered.
83+
84+
Multiple requests
85+
-----------------
8886

8987
When allocating time off, it is common to allocate time to several employees at once. This is done
9088
using the :guilabel:`Multiple Requests` feature.
@@ -94,10 +92,10 @@ app --> Management --> Allocations`. Then, click the :icon:`fa-gear` :guilabel:`
9492
the upper-left corner, then click :icon:`fa-users` :guilabel:`Multiple Requests`. This reveals a
9593
:guilabel:`Multiple Requests` pop-up window.
9694

97-
This form is identical to the :guilabel:`Allocation` form, with an additional :guilabel:`Mode`
98-
field. The :guilabel:`Mode` field determines how multiple employees are selected.
95+
This form is identical to the :ref:`Allocation form <time_off/allocation-form>`, with an additional
96+
:guilabel:`Mode` field. The :guilabel:`Mode` field determines how multiple employees are selected.
9997

100-
Using the drop-down menu, select one of the following :guilabel:`Modes`:
98+
Using the drop-down menu, select a :guilabel:`Mode` from one of the following options:
10199

102100
- :guilabel:`By Employee`: This option allows for the selection of multiple individual employees
103101
that are unrelated in terms of department, company, or tags. Selecting this reveals an
@@ -126,9 +124,31 @@ desired.
126124
Fill out the remainder of the :ref:`Multiple Requests form <time_off/allocation-form>`, then click
127125
:guilabel:`Create Allocations` when done.
128126

129-
.. image:: allocations/multiple-requests.png
130-
:alt: An allocation request form filled out for sick time for all employees within the sales
131-
department.
127+
.. example::
128+
A company hosts an annual picnic, including a raffle. There are five raffle prizes for a free
129+
vacation day, which must be redeemed by the end of the year. The winners of this raffle all have
130+
the tag `Raffle Winner - 2025 Employee Picnic Prize` added to their employee profiles.
131+
132+
The time off officer creates multiple allocations, and configures the :ref:`Multiple Requests
133+
form <time_off/allocation-form>` as follows:
134+
135+
The name for the allocation is :guilabel:`Vacation Day - Raffle Prize - 2025 Picnic`. The
136+
:guilabel:`Mode` is set to :guilabel:`By Employee Tag`, and the :guilabel:`Tag` identified is
137+
:guilabel:`Raffle Winner - 2025 Employee Picnic Prize`.
138+
139+
The :guilabel:`Time Off Type` is set to :guilabel:`Vacation Time Off`, with the
140+
:guilabel:`Allocation Type` set to :guilabel:`Regular Allocaiton`, since the time off is given up
141+
front, and is not *earned*.
142+
143+
The :guilabel:`Validity Period` is set to :guilabel:`07/18/2025` :icon:`oi-arrow-right`
144+
:guilabel:`12/31/2025`, since the compnay picnic was that day, and the earned vacation day
145+
expires at the end of the year.
146+
147+
The :guilabel:`Allocation` is set to :guilabel:`1.00 Days`, and `A bonus vacation day won at the
148+
annual Company Picnic.` appears in the details at the bottom.
149+
150+
.. image:: allocations/multiple-requests.png
151+
:alt: An allocation request form filled out for a bonus vacation day for raffle winners.
132152

133153
.. _time_off/request-allocation:
134154

@@ -146,13 +166,15 @@ list view. Both buttons open a new allocation request form.
146166
.. note::
147167
Both options open a new allocation request form, but when requested from the
148168
:guilabel:`Dashboard`, the form appears in a pop-up window, and the *Validity Period* field does
149-
**not** appear. When requested from the :guilabel:`My Allocations` list view, the screen
150-
navigates to a new allocation request page, instead of presenting a pop-up window.
169+
**not** appear.
170+
171+
When requested from the :guilabel:`My Allocations` list view, the screen navigates to a new
172+
allocation request page, instead of presenting a pop-up window.
151173

152174
Enter the following information on the new allocation request form:
153175

154-
- :guilabel:`Time Off Type`: Select the type of time off being requested for the allocation from the
155-
drop-down menu. After a selection is made, the title updates with the time off type.
176+
- :guilabel:`Time Off Type`: Using the drop-down menu, select the type of time off being requested
177+
for the allocation. After a selection is made, the title updates with the time off type.
156178
- :guilabel:`Validity Period`: By default, the current date populates this field, and it is **not**
157179
able to be modified. This field **only** appears when requesting an allocation from the
158180
:guilabel:`My Allocations` view (:menuselection:`Time Off --> My Time --> My Allocations`).
@@ -167,8 +189,7 @@ If the request was created from the :guilabel:`Dashboard`, click the :guilabel:`
167189
on the :guilabel:`New Allocation` pop-up window to save the information and submit the request.
168190

169191
If the form was completed from the :guilabel:`My Allocations` list view, the information is
170-
automatically saved as it is entered. However, the form can be saved manually at any time by
171-
clicking the :icon:`fa-cloud-upload` :guilabel:`(cloud upload)` icon.
192+
automatically saved as it is entered.
172193

173194
.. image:: allocations/allocation-request.png
174195
:alt: An allocation request form filled out for an employee requesting an additional week of
1.23 KB
Loading
-697 Bytes
Loading

0 commit comments

Comments
 (0)