Skip to Content
Menú
This question has been flagged
1 Respondre
2395 Vistes


i'm an admin user in my company and i enroll check in & out manually for my team on Odoo 11 but it didn't appear in payroll so 1- how can i make pay roll pending on actual attendance ?

2- how to make salary rule pending on number of actual attendance in the company ?


Avatar
Descartar

If you are looking to deduct the salary based on the leaves, you can follow what jithin has explained in answer, see the video illustration of it: https://www.youtube.com/watch?v=Drr4tDzmsbg

Best Answer

Hi Eslam Ahmed, Try like below:

Create salary rule to deduct unpaid leaves pay from payslip.
 payroll -> salaryrules -> create,  add new rule
 - select a rule category:deductions
 - Computation : Python Code.

Python Code :

#Our Computation code to calculate amount In case of 31 days
try:
result =-(contract.wage/31) * worked_days.Unpaid.number_of_days
except:
result = 0
Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de jul. 24
2679
1
de juny 24
5141
1
d’oct. 23
10849
1
d’oct. 23
98
1
d’ag. 23
2193