Skip to Content
Menu
v 18.0 Third Party
This module requires Odoo Enterprise Edition.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Payroll (hr_payroll)
Time Off (hr_holidays)
Discuss (mail)
Employees (hr)
Employee Contracts (hr_contract)
Calendar (calendar)
Lines of code 151
Technical Name fal_hr_payslip_to_allocation
LicenseOPL-1
Websitehttps://www.cluedoo.com/shop/lic-clu-set-psl-0004-compensatory-time-off-allocation-6070
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Payroll (hr_payroll)
Time Off (hr_holidays)
Discuss (mail)
Employees (hr)
Employee Contracts (hr_contract)
Calendar (calendar)
Lines of code 151
Technical Name fal_hr_payslip_to_allocation
LicenseOPL-1
Websitehttps://www.cluedoo.com/shop/lic-clu-set-psl-0004-compensatory-time-off-allocation-6070

STORY BEHIND THE FEATURES

ODOO'S FUNCTIONS

Odoo's Payroll is a convenient tool to process work entries and create payslips for employees. However, Odoo has not developed a feature for companies with compensatory time-off policies. The process of allocating time-off in recognition of overtime has to be done manually.

CLUEDOO'S FUNCTIONS

Cluedoo adds an additional feature to automate the task of allocating compensatory time-off.

CLUEDOO RECOMMENDATION

Install on 100% of your database for companies with compensatory time-off policies.

HOW TO USE THIS MODULE

​Key set-up
Step 1: Configure rules for compensatory time-off
1. On Payroll/Configuration/Rules, create a new rule.
2. Fill out rule name.
3. Choose Category: Basic.
4. The rule's code needs to be unique.
5. Fill out sequence to define the rule's placement on the payslip.
6. Choose a salary structure.
7. Check "Compensatory Time Off" checkbox.


Conditions: To decide condition for rule to appear on Payslips
Example of condition:
- Based on: Python Expression
- Python condition:

V16:

result = worked_days.WORK300 and worked_days.WORK300.number_of_days or False
#Rule only appears on the payslip when there is entry type of Extra Hour and/or number of days of Extra Hours is set

V17 :

result = 'WORK300' in worked_days and worked_days['WORK300'].number_of_days or False


Computation:
Please note that the quantity of Compensatory Time-off allocation equals the quantity of the rule on  the Salary Computation tab of the Payslip.
Example of configuration:
- Amount type: Python Code
- Python Code:


V16:

result_qty = worked_days.WORK300.number_of_days #Set quantity of rule = number of days of Extra Hours entry type on Worked Days & Inputs tab of Payslip
result_rate =100.00 #Set ratio of rule
result = 0 #Set amount of rule


V17:

result_qty = worked_days['WORK300'].number_of_days

result_rate = 100.00

result = 0

Save




Step 2: Set up Time-off type for allocation
1. Go to Time-off -> Configuration -> Time Off Type.

Click on intended time-off type.


2. Check "Is Compensatory Time Off" checkbox
Note: If there are more than one Time Off Types set as Compensatory Time Off, the system will pick the first one on the list.


3. Save


.


Register work entries and generate your payslip
1. Go to Payroll -> Work Entries -> Work Entries
2. Register work entries.
For example: Employee Anita Oliver worked 4 hours of Extra Hours on Aug 5th.
3. Click on "Generate Payslips" button to generate the payslip of all employees for the current period.


.



Result:
1. A batch of payslips is generated. Click on the smart button to open the payslip list and choose Anita Oliver's payslip.

2. On the Worked Days & Inputs tab, the Number of Days of Extra Hours is recorded. This is the Odoo Standard.


.


3. On the Salary Computation tab, the Comp timeoff rule line has:
- Quantity computed per Python Code, equal to the number of days of Extra Hours entry type on the Worked Days & Inputs tab.
- "Comp. Time Off" checkbox auto-checked.
Note: User can uncheck this checkbox in case they do not intend to allocate time-off.


Confirm the payslip and allocate time-off
Action: On Payslip, click on "Create draft entry" button.


Result:

The payslip is confirmed and a draft allocation is generated. Click on on it:
- Duration of allocation equals quantity of "Comp timeoff" rule on payslip.
- Time-off Type is shown as previously set-up.


.




Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.