Current code is based on a setup per
day and based on the request leaves per day that create the
attendance lines in the payslip.
Actually you can probably easily have a daily attendance calculated based on the daily rate in contract and calculate it through something like: result = contract.wage * worked_days.WORK100.number_of_days For hourly rate, depending on your detailed needs you probably have to add some information (hourly attendance somewhere in your payslip, following the daily attendance logic) and calculate using the same method. Another option would be to link the timesheets and generate the payslip based on the timesheet information of the month. Best regards
Thanks Eric, I assumed there was some way to do it but couldn't figure out how to access the attendance hours from within the python code bit. I looked at the inputs, worked_days, etc but can't figure it out. Any hints on how to go about pulling in the hours? |
_______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp