Community mailing list archives

Re: payslip with provided worked days

Eric Caudal (Odoo Community Association)
- 11/03/2015 03:42:26
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)