Re: payslip with provided worked days

by

Abdul Qudoos Mehdi

- 11/04/2015 05:46:54

I solved this issue by using this python code in salary rule, i.eresult = 0
for line in payslip.worked_days_line_ids:
result += line.number_of_days
if result >= 28:
result = 30
result = result*(contract.wage/30)

but now I want to salary of working days by using leaves module, How can it work, From where I can get the values of paid, unpaid and other types of leaves to make salary rule. Can anybody solve this issue?