Monday, July 21, 2025
3 changes · saas-18.3
Resolved issues and error corrections
This update adjusts internal tests for the HTML editor so they use stable web links and avoid intermittent failures. It helps maintain confidence in editor quality without changing the customer-facing editing experience.
Original PR description
This PR is backport of https://github.com/odoo/odoo/pull/218587 Update test to use a real href (`http://test.test/`) to reflect new behavior showing link href in the input, avoiding popover issues with `#`. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
A failing automated test in the enterprise discussion area has been corrected by loading the expected HR-related test data. This helps keep the validation pipeline stable and reduces the risk of delays caused by false test failures.
Original PR description
Before this commit, recently added unit test "can handle command and disable mentions in AI composer" crashed on runbot with the following error message: ``` cannot find a definition for model…
Before this commit, recently added unit test "can handle command and disable mentions in AI composer" crashed on runbot with the following error message: ``` cannot find a definition for model "hr.employee": could not get model from server environment (did you forget to use `defineModels()?`) ``` Somehow the mock models in this test suite is aware of model "hr.employee". While this model exists with this module installed, the hoot suite in `test_discuss_full_enterprise` only imports mail models which hasn't `hr.employee`, thus we'd expect the suite to not be aware of this model and shouldn't attempt to load it. While we don't know why the hr.employee model definition is obtained on runbot on this test suite, functionally it makes sense to have this model installed. At the same time, we'd expect that the JS model definition are optional and just there in case we want to "cheat" model definition from the one fetched. This commit attempts to fix the issue by defining hr models rather than mail models in this test suite. Hr models have mail models in addition to hr models like hr.employee, thus we expect to fix the crash. Fixes runbot-error-230073
The rental schedule's "To Do Today" filter now correctly accounts for each user's local timezone before comparing records. This prevents rental tasks from appearing on the wrong day for users outside UTC, improving day-to-day scheduling accuracy.
Original PR description
__Issue:__ The "To Do Today" filter used the user's local date to build a datetime range but treated it as if it were already in UTC. This caused incorrect filtering in non-UTC timezones __Fix:__ - Convert those datetimes to UTC using `.to_utc()` in the filter domain opw-4886069 Forward-Port-Of: odoo/enterprise#90358 Forward-Port-Of: odoo/enterprise#89718