Hello,
I am trying to deduct salary for unpaid leaves based on number of days of month.
In hr.payslip following line is added.
day = datetime.strptime(date_to,"%Y-%m-%d").day
res['value'].update({
'day': day,
})
'day' give me last day of month. For salary rule I have try:
result=(contract.wage/payslip.day)*worked_days.Unpaid.number_of_days
But Following error occur:
res['value'].update({
TypeError: list indices must be integers, not str
I understand error, also try for integer list but nothing will happen.Any suggestion
For above I refer following link:
https://www.odoo.com/forum/help-1/question/unpaid-leaves-deduction-not-working-16131
and also I want to define organisation holiday. For organisation holiday salary not deduct for that I want add salary rule.