Community mailing list archives

community@mail.odoo.com

Re: payslip with provided worked days

by
Eric Caudal
- 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 <abdul.bsse1399@gmail.com> wrote:
Hello
I am facing problem in generating payslip using worked days input, Odoo cannot compute salary according to worked days.
I am using python expression
i.e
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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

--

Eric  Caudal (from my mobile)