I have a problem in changing a date or an employee under hr.payslip after saving the record. it gives me the following error
ValueError: "name 'date_from' is not defined" while evaluating
'[date_from, date_to, employee_id, contract_id]'
It will be ok if you comment/delete the following source code in hr_payroll/payslip.py/ function
#delete old worked days lines old_worked_days_ids = ids and worked_days_obj.search(cr, uid, [('payslip_id', '=', ids)], context=context) or False if old_worked_days_ids: worked_days_obj.unlink(cr, uid, old_worked_days_ids, context=context) #delete old input lines old_input_ids = ids and input_obj.search(cr, uid, [('payslip_id', '=', ids)], context=context) or False if old_input_ids: input_obj.unlink(cr, uid, old_input_ids, context=context)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/28/15, 4:49 AM|
|Seen: 607 times|
|Last updated: 3/31/16, 3:13 AM|