[IMP] Time Off: updating requested allocation doc

closes odoo/documentation#10627

Signed-off-by: Samuel Lieber (sali) <sali@odoo.com>
This commit is contained in:
Lara Martini (larm) 2024-08-06 15:30:01 -04:00
parent c1d5ddc361
commit b8607a24a8
2 changed files with 49 additions and 25 deletions

View File

@ -6,10 +6,10 @@ Once :ref:`time off types <time_off/time-off-types>` and :ref:`accrual plans
<time_off/accrual-plans>` have been configured, the next step is to *allocate*, or give, time off to <time_off/accrual-plans>` have been configured, the next step is to *allocate*, or give, time off to
employees. employees.
The *Allocations* section of the *Time Off* app is **only** visible to users who have either The *Allocations* page of the **Time Off** app is **only** visible to users who have either *Time
:guilabel:`Time Off Officer` or :guilabel:`Administrator` access rights for the *Time Off* Off Officer* or *Administrator* access rights for the **Time Off** application. For more information
application. For more information on access rights, refer to the :doc:`access rights on access rights, refer to the :doc:`access rights <../../general/users/access_rights/>`
<../../general/users/access_rights/>` documentation. documentation.
Allocate time off Allocate time off
================= =================
@ -24,16 +24,16 @@ Click :guilabel:`New` to allocate time off, and a blank allocation form appears.
After entering a name for the allocation on the first blank field of the form, enter the following After entering a name for the allocation on the first blank field of the form, enter the following
information: information:
- :guilabel:`Time Off Type`: using the drop-down menu, select the type of time off that is being - :guilabel:`Time Off Type`: Using the drop-down menu, select the type of time off that is being
allocated to the employees. allocated to the employees.
- :guilabel:`Allocation Type`: select either :guilabel:`Regular Allocation` or :guilabel:`Accrual - :guilabel:`Allocation Type`: Select either :guilabel:`Regular Allocation` or :guilabel:`Accrual
Allocation`. If the allocation is **not** based on an :ref:`accrual plan Allocation`. If the allocation is **not** based on an :ref:`accrual plan
<time_off/accrual-plans>`, select :guilabel:`Regular Allocation`. <time_off/accrual-plans>`, select :guilabel:`Regular Allocation`.
- :guilabel:`Accrual Plan`: if :guilabel:`Accrual Allocation` is selected for the - :guilabel:`Accrual Plan`: If :guilabel:`Accrual Allocation` is selected for the
:guilabel:`Allocation Type`, the :guilabel:`Accrual Plan` field appears. Using the drop-down menu, :guilabel:`Allocation Type`, the :guilabel:`Accrual Plan` field appears. Using the drop-down menu,
select the accrual plan with which the allocation is associated. An accrual plan **must** be select the accrual plan with which the allocation is associated. An accrual plan **must** be
selected for an :guilabel:`Accrual Allocation`. selected for an :guilabel:`Accrual Allocation`.
- :guilabel:`Validity Period/Start Date`: if :guilabel:`Regular Allocation` is selected for the - :guilabel:`Validity Period/Start Date`: If :guilabel:`Regular Allocation` is selected for the
:guilabel:`Allocation Type`, this field is labeled :guilabel:`Validity Period`. If :guilabel:`Allocation Type`, this field is labeled :guilabel:`Validity Period`. If
:guilabel:`Accrual Allocation` is selected for the :guilabel:`Allocation Type`, this field is :guilabel:`Accrual Allocation` is selected for the :guilabel:`Allocation Type`, this field is
labeled :guilabel:`Start Date`. labeled :guilabel:`Start Date`.
@ -48,15 +48,39 @@ information:
If :guilabel:`Accrual Allocation` is selected for the :guilabel:`Allocation Type`, this second If :guilabel:`Accrual Allocation` is selected for the :guilabel:`Allocation Type`, this second
field is labeled :guilabel:`Run until`. field is labeled :guilabel:`Run until`.
- :guilabel:`Allocation`: enter the amount of time that is being allocated to the employees. This
.. important::
If the :guilabel:`Start Date` entered is in the middle of a period of time, such as the middle
of the month, Odoo applies the allocation to the beginning or end of the period, depending on
the *Accrued Gain Time* entered on the :ref:`accrual plan <time_off/accrual-plans>` (either *At
the start of the accrual period*, or *At the end of the accrual period*) instead of the
specific date entered.
For example, an allocation is created, and references an accrual plan that grants time *At the
start of the accrual period*, monthly, on the first of the month.
On the allocation form, the :guilabel:`Allocation Type` is set to :guilabel:`Accrual
Allocation`, and the :guilabel:`Start Date` entered is `06/16/24`.
Odoo's **Time Off** app retroactively applies the allocation to the beginning of the time
period entered in the :guilabel:`Start Date`.
Therefore, this allocation accrues time from `06/01/24`, rather than `06/16/24`.
Additionally, if on the accrual form, the allocation references an accrual plan that grants
time *`At the end of the accrual period*, the allocation accrues time from `7/01/24` rather
than `6/18/24`.
- :guilabel:`Allocation`: Enter the amount of time that is being allocated to the employees. This
field displays the time in either :guilabel:`Hours` or :guilabel:`Days`, depending on how the field displays the time in either :guilabel:`Hours` or :guilabel:`Days`, depending on how the
selected :ref:`Time Off Type <time_off/time-off-types>` is configured. selected :ref:`Time Off Type <time_off/time-off-types>` is configured.
- :guilabel:`Mode`: using the drop-down menu, select how the allocation is assigned. This selection - :guilabel:`Mode`: Using the drop-down menu, select how the allocation is assigned. This selection
determines who receives the time off allocation. The options are :guilabel:`By Employee`, determines who receives the time off allocation. The options are :guilabel:`By Employee`,
:guilabel:`By Company`, :guilabel:`By Department`, or :guilabel:`By Employee Tag`. :guilabel:`By Company`, :guilabel:`By Department`, or :guilabel:`By Employee Tag`.
Depending on what is selected for the :guilabel:`Mode`, the following field is labeled either: Depending on what is selected for the :guilabel:`Mode`, the field beneath :guilabel:`Mode` is
:guilabel:`Employees`, :guilabel:`Company`, :guilabel:`Department`, or :guilabel:`Employee Tag`. labeled either: :guilabel:`Employees`, :guilabel:`Company`, :guilabel:`Department`, or
:guilabel:`Employee Tag`.
Using the drop-down menu, indicate the specific employees, company, department, or employee tags Using the drop-down menu, indicate the specific employees, company, department, or employee tags
receiving this time off. receiving this time off.
@ -64,7 +88,7 @@ information:
Multiple selections can be made for either :guilabel:`Employees` or :guilabel:`Employee Tag`. Multiple selections can be made for either :guilabel:`Employees` or :guilabel:`Employee Tag`.
Only one selection can be made for the :guilabel:`Company` or :guilabel:`Department`. Only one selection can be made for the :guilabel:`Company` or :guilabel:`Department`.
- :guilabel:`Add a reason...`: if any description or note is necessary to explain the time off - :guilabel:`Add a reason...`: If any description or note is necessary to explain the time off
allocation, enter it in this field at the bottom of the form. allocation, enter it in this field at the bottom of the form.
.. image:: allocations/new-allocation.png .. image:: allocations/new-allocation.png
@ -82,28 +106,28 @@ allocation for additional time. Allocations can be requested in one of two ways,
:ref:`Dashboard <time_off/dashboard>` or the :ref:`My Allocations <time_off/my-allocations>` view. :ref:`Dashboard <time_off/dashboard>` or the :ref:`My Allocations <time_off/my-allocations>` view.
To create a new allocation request, click either the :guilabel:`New Allocation Request` button on To create a new allocation request, click either the :guilabel:`New Allocation Request` button on
the main *Time Off* dashboard, or the :guilabel:`New` button in the :guilabel:`My Allocations` list the main **Time Off** dashboard, or the :guilabel:`New` button in the :guilabel:`My Allocations`
view. Both buttons open a new allocation request form. list view. Both buttons open a new allocation request form.
.. note:: .. note::
Both options open a new allocation request form, but when requested from the Both options open a new allocation request form, but when requested from the
:guilabel:`Dashboard`, the form appears in a pop-up window. When requested from the :guilabel:`Dashboard`, the form appears in a pop-up window, and the *Validity Period* field does
:guilabel:`My Allocations` list view, the screen navigates to a new allocation request page, **not** appear. When requested from the :guilabel:`My Allocations` list view, the screen
instead. navigates to a new allocation request page, instead of presenting a pop-up window.
Enter the following information on the new allocation request form: Enter the following information on the new allocation request form:
- :guilabel:`Time Off Type`: select the type of time off being requested for the allocation from the - :guilabel:`Time Off Type`: Select the type of time off being requested for the allocation from the
drop-down menu. After a selection is made, the title updates with the time off type. drop-down menu. After a selection is made, the title updates with the time off type.
- :guilabel:`Validity Period`: using the calendar selector, select a start and end date the - :guilabel:`Validity Period`: By default, the current date populates this field, and it is **not**
allocation is valid for. By default, the current date populates the first field, and :guilabel:`No able to be modified. This field **only** appears when requesting an allocatoin from the
Limit` populates the second field. Adjust both of these dates, if desired. :guilabel:`My Allocations` view (:menuselection:`Time Off --> My Time --> My Allocations`).
- :guilabel:`Allocation`: enter the amount of time being requested in this field. The format is - :guilabel:`Allocation`: Enter the amount of time being requested in this field. The format is
presented in either :guilabel:`Days` or :guilabel:`Hours`, depending on how the :guilabel:`Time presented in either :guilabel:`Days` or :guilabel:`Hours`, depending on how the :guilabel:`Time
Off Type` is configured. Once this field is populated, the name of the allocation request is Off Type` is configured. Once this field is populated, the name of the allocation request is
updated to include the amount of time being requested. updated to include the amount of time being requested.
- :guilabel:`Add a reason...`: enter a description for the allocation request. This should include - :guilabel:`Add a reason...`: Enter a description for the allocation request in this field. This
any details that approvers may need to approve the request. should include any details that approvers may need to approve the request.
If the request was created from the :guilabel:`Dashboard`, click the :guilabel:`Save & Close` button If the request was created from the :guilabel:`Dashboard`, click the :guilabel:`Save & Close` button
on the :guilabel:`New Allocation` pop-up window to save the information and submit the request. on the :guilabel:`New Allocation` pop-up window to save the information and submit the request.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 34 KiB