Skip to Content
Menu
This question has been flagged

In the payslip module there is a set of rules in which the module counts the period based on weekends and the schedule however. the company is working in a daily salary system internally based on the employee net salary not basic salary. so the daily salary would be Net/Num_of_days.

When an employee takes an unpaid leave it should use that value but in the module it always uses the value of days counting out the weekends. Should i extend the model and adjust the computations or there is a way to just adjust the configuration of the payroll module to make this work?

Avatar
Discard
Best Answer

Hi,


In Odoo Payroll, the default behavior calculates daily salary based on scheduled working days, automatically excluding weekends. For unpaid leave, deductions are computed using these scheduled days rather than the actual daily salary based on net pay. Your company requires daily salary to be calculated as net salary divided by the total number of calendar days, with unpaid leave deductions reflecting this value.


There is no standard configuration in Odoo to switch from scheduled days to calendar days for daily salary calculations. Adjustments like this require customization by extending the payroll models or overriding salary rules. By customizing the computation, you can ensure unpaid leave deductions are correctly based on net salary per day without affecting other payroll rules.


Hope it helps

Avatar
Discard
Author

Hello,

Thanks for the response i figured a work around.

Related Posts Replies Views Activity
0
Nov 23
2327
3
May 22
11684
2
Jul 24
11379
0
May 16
3823
8
Feb 24
13605