Community mailing list archives

Re: payslip with provided worked days

Abdul Qudoos Mehdi
- 11/04/2015 05:46:54
I solved this issue by using this python code in salary rule, i.e
result = 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?

On Tue, Nov 3, 2015 at 2:15 PM, Abdul Qudoos <> wrote:
I am using demo data, and I want, e.g
to calculate salary of  20 working days of an employee  out of 30
but still facing issues

On Tue, Nov 3, 2015 at 1:48 PM, Caudal Eric <> wrote:
In the demo data, there are example for the bonus calculation and how to refer to external input. 
You can follow it

On Tue, Nov 3, 2015 at 4:36 PM Abdul Qudoos <> wrote:
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

Post to:


Eric  Caudal (from my mobile)

Post to: