Skip to Content
Menú
This question has been flagged
2 Respostes
236 Vistes

I need your assistance with an issue in Odoo Payroll and Time Off. When I apply for unpaid leave, it appears correctly in the salary slip and also shows the unpaid leave amount. However, when I review the salary computation, the unpaid leave amount does not appear under the Unpaid Leave rule and is not deducted from the Net Salary calculation.

In other words, the salary slip displays the unpaid leave entry, but the Net Salary remains unaffected. I have attached a screenshot for your review. Could you please guide me on how this can be resolved? Additionally, I want to mention that the payroll unpaid leave code is the same as the one used in the Unpaid Salary rule.

Thank you for your support.

Avatar
Descartar
Best Answer

The discrepancy arises because the unpaid leave amount might be calculated but not correctly integrated into the net salary deduction within your salary rules.



  Verify your salary rule configuration. Ensure the "Unpaid Leave" rule is correctly subtracting the unpaid leave amount from the gross salary.

  Check the rule's sequence and dependencies. It should be applied *after* gross salary calculation and *before* net salary calculation.

  Review the rule's formula and ensure it accurately reflects the unpaid leave amount. Test with a simple calculation (e.g., subtracting the number of unpaid leave days multiplied by the daily rate).


If you'd like to explore this further for your use case, you're welcome to connect with us at Pragmatic Techsoft.

Avatar
Descartar
Best Answer

Hi,


In Odoo Payroll, if unpaid leave shows up on the payslip but does not reduce the net salary, it usually means the salary rule for unpaid leave is not properly configured. You need to check that the rule’s Condition (Based on code) matches the time-off code used for unpaid leave, and that the Computation method is set to deduct from the base (e.g., using worked days inputs like worked_days.UNPAID.number_of_days or worked_days.UNPAID.number_of_hours). Also confirm the Category of the rule is set under “Deduction” so it impacts the Net Salary calculation. In short, align the unpaid leave time-off code with the salary rule condition, ensure the formula deducts correctly, and place the rule in the right sequence/category so it reduces Net Salary.


For more information, refer to the following.

* https://www.youtube.com/watch?v=khAu-pL40NU

* https://www.youtube.com/watch?v=uU4KPDUQDPM


* https://www.cybrosys.com/blog/an-overview-of-odoo-18-payroll-module

* https://www.cybrosys.com/blog/an-overview-of-odoo-16-time-off-module


Hope it helps

Avatar
Descartar