Friday, January 24, 2025
3 changes · saas-17.4
Resolved issues and error corrections
Creating a new task from an editable portal project form no longer causes a validation error related to timesheets. This improves the portal task creation flow so users can save their work without being blocked by an internal field setting.
Original PR description
Steps to reproduce: - Open any editable project from portal - Open any task - Create a task using Form New button. - Give the changes and save Issue: - A validation error Reason: - The timesheets ids field in project sharing view has readonly attruibute which it shouldn't have. - Due to this changes are fetched and context in evaluated this field becomes writable. Fix: - Remove the readonly attribute as timesheet_ids is already a readonly field in portal side. task- 4494040
Users can now search by employee or leave name in the Time Off overview as expected. This fixes a lookup issue caused by the underlying name field not being directly searchable, making it easier for managers and HR teams to find relevant leave records.
Original PR description
Steps: - Install the time-off app. - Navigate to the Overview section. - Searching by name is not working. Cause of the issue: - The name field is non-stored. Fix: - Added a search method for the name. task-4348198 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update makes internal time off tests more reliable by ensuring they use consistent dates and only check the leave records created by the test. This reduces false failures in automated checks and helps keep payroll and HR-related development workflows stable.
Original PR description
The test suffered from multiple problems: - Duration of leaves could sometimes be less or more depending on the day of the week (weekend don't count in duration) - Demo data could make the test pass while the leaves created during the test were not actually found Here we improved the date mechanism as well as forcing the domain to only search within our own leaves as well as comparing that those leaves are the one with fetched.