Skip to Content
Menu
This question has been flagged
1 Reply
2057 Views


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
Discard

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
Discard
Related Posts Replies Views Activity
2
Jul 24
940
1
Jun 24
3561
1
Oct 23
8588
1
Oct 23
97
1
Aug 23
2192