Compensatory Time Off Allocation

Automate task of allocating compensatory time-off from payslip

0.00 € 0.0 EUR 0.00 € VAT Excluded

US$ 0.00 VAT Excluded

Not Available For Sale

  • Environment

This combination does not exist.

Rev Matt
: V13
Environment: Enterprise

Terms and Conditions
30-day money-back guarantee



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 adds an additional feature to automate the task of allocating compensatory time-off.


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


​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:


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


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

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:


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


result_qty = worked_days['WORK300'].number_of_days result_rate =100.00 result = 0 

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.


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.