Monday, April 20, 2026
6 changes · 18.0
Resolved issues and error corrections
This update makes an unstable HR leave test run consistently by fixing the date it uses during execution. It prevents random failures caused by weekends or existing demo data, so automated checks are more reliable.
Original PR description
### Issue before this commit: The test test_manager_can_approve_from_leave_report_calendar is unstable and fails depending on the execution date or existing demo data. ### Cause of the issue: The test lacks temporal isolation. Odoo's constraint logic triggers a ValidationError when a leave is requested on a non-working day or overlaps with existing records: odoo.exceptions.ValidationError: The following employees are not supposed to work during that period: David Employee. Commit that caused the error: https://github.com/odoo/odoo/commit/83d5c84fa0ead1557fbb6eff6855f77ee4771dc4 ### Reason to introduce the fix: To ensure test determinism by using @freeze_time. Freezing the date to a known working weekday prevents intermittent failures caused by the real-time calendar and ensures the focus remains on validating the manager's approval flow. runbot-242574 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
We fixed an automated test in the salary package module so it no longer depends on demo-only sample data. This makes the test more reliable and helps avoid failures in environments where demo data is not available.
Original PR description
### Issue: - We were referring an existing XML ID in our test case, but that record is only created in demo data. ### Fix: - No need to use the demo record Id, instead, create a new record. Task: 6115762
This change updates the Mexican e-invoicing test so it matches the restored rounding behavior. It helps prevent false test failures and keeps the validation aligned with how invoices are now calculated.
Original PR description
https://github.com/odoo/odoo/pull/255574 change the rounding mode back to mixed. This break the test modified in this PR. opw-5963855
This change restores the previous way child contact names are shown in invoices and related customer records. It helps ensure contact names appear as expected for users who work with company contact hierarchies.
Original PR description
This reverts commit 0ef4c1d06fdf999ad5cdad696069aec8f2f943c5. opw-5900567 Forward-Port-Of: odoo/odoo#260065
This change updates Sendcloud delivery tests so they are no longer treated as external-only checks. As a result, issues in these tests will be caught earlier in normal CI instead of only appearing in nightly runs, improving reliability of delivery-related updates.
Original PR description
Test class was tagged as external although calls are mocked. This means errors were only caught in nightly and not by CI. Removing the tag requires fixing some of the tests. For `test_multicollo`, we send the average weight of packages instead of the total since 97f82442c9fee7dcb3e8c5e9bacddcd6bb864e11.
This update corrects a missing parameter in the project task kanban view logic. It helps ensure task information is passed properly, reducing the chance of errors or unexpected behavior when users work with project tasks.
Original PR description
This commit adds a missing parameters to the parent call. task-5498274 Forward-Port-Of: odoo/odoo#260143