Friday, December 6, 2024
3 changes
Code cleanup and technical improvements
The timer app's automated tests were converted to a newer testing approach, helping maintain reliability without changing how users work. This supports smoother future updates for timer and timesheet-related features by keeping internal quality checks current.
Original PR description
In this commit Quint test cases are converted into hoot test cases task-4354271 Note: `timer/static/tests/timer_start_field_tests.js` has already been done in PR https://github.com/odoo/enterprise/pull/68780
Payroll accounting test utilities were reorganized so tests can better handle records created during each test run. This is an internal maintenance change that improves test reliability and readability without changing payroll behavior for users.
Original PR description
The methods _generate_leave and _add_other_inputs could be improved to allow for records created in the test itself. Also made the code prettier. Task: 4374060
This update adjusts several Point of Sale-related modules to follow a newly introduced code style rule. It is an internal cleanup that helps keep the codebase consistent and easier to maintain, with no expected change to user-facing behavior.
Original PR description
In the corresponding community commit we add the eslint rule `"arrow-body-style": ["error", "as-needed"]`. In this commit we adapt the code to respect this new rule. https://github.com/odoo/odoo/pull/188818