Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/28/15, 4:49 AM|
|Seen: 1196 times|
|Last updated: 3/31/16, 3:13 AM|