Community mailing list archives

payslip with provided worked days

Abdul Qudoos Mehdi
- 11/03/2015 03:33:26
I am facing problem in generating payslip using worked days input, Odoo cannot compute salary according to worked days.
I am using python expression
result = (contract.wage/30)*worked_days.number_of_days

and also use this method

worked_days.sum(code, from_date, to_date)
by putting values like
worked_days.sum('WORK100', '10/01/2015', '10/30/2015')

but still zero
can anybody solve my issue?
how to calculate salary according to worked days
Abdul Qudoos Mehdi