Thursday, June 16, 2022
1 change · master
Resolved issues and error corrections
Timesheet entries now correctly keep or require an employee when users create time from the timesheet grid, even if their employee record was archived or deleted. This avoids incomplete task time records and improves the reliability of timesheet reporting and billing flows.
Original PR description
- Bug 1 Steps : Archive your employee, go to your timesheets and add time on a task T line Go to task T and note that a line have been added without any employe Cause : By default, views do not show archived values. Fix : Show archived employees with context key 'test_active=False'. - Bug 2 : Steps : Delete your employee, go to your timesheets and add time on a task T line Go to task T and note that a line have been added without any employe Cause : If this employee do not exist, the timesheet has no employee, which does not make sense. Fix : At creation of aal, check that timesheets have an employee. opw: 2740228 Related PR: https://github.com/odoo/odoo/pull/83918