Community mailing list archives
Re: payslip with provided worked daysby
Eric Caudal (Odoo Community Association)
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 <firstname.lastname@example.org> wrote:
Abdul Qudoos Mehdihow to calculate salary according to worked dayscan anybody solve my issue?but still zeroby putting values likeand also use this methodi.eI am using python expressionHelloI am facing problem in generating payslip using worked days input, Odoo cannot compute salary according to worked days.
result = (contract.wage/30)*worked_days.number_of_days
worked_days.sum(code, from_date, to_date)
worked_days.sum('WORK100', '10/01/2015', '10/30/2015')
Eric Caudal (from my mobile)