Daily updates from Odoo
Tuesday, December 30, 2025
1 change · 17.0
Resolved issues and error corrections
This update fixes a test failure related to the TPAR report. The test now uses current date information, ensuring it runs correctly regardless of the current year and future deployments. This improves the reliability of our reporting processes.
Original PR description
Behavior before:
The TPAR report test used hardcoded dates ('2025-01-01' to '2025-12-31'). When running tests with Faketime or on future deployments, this caused failures because the test did not adapt to the current date.
Behavior after:
The test now uses dynamic dates based on `fields.Date.context_today(self.env.user)`. This ensures the test runs correctly regardless of the current year and avoids issues with hardcoded dates.
Root Cause:
Hardcoded dates in the test conflicted with Faketime, causing the test environment to simulate a future year and fail.
Runbot issue: https://runbot.odoo.com/odoo/runbot.build.error/237547