Thursday, July 31, 2025
6 changes · 17.0
Resolved issues and error corrections
This fixes an error that could block users from creating new work entries in the French payroll list view when dates were not yet filled in. The change adds a safeguard so payroll staff can start creating records normally without triggering a system traceback.
Original PR description
Currently, a traceback occurs when a user attempts to create a work entry in the list view. **To reproduce this issue:** 1) Install the `l10n_fr_hr_work_entry_holidays` module. 2) Switch to the `French` company and open the payroll. 3) Open the work entries in list view and try to create a new record. **Error:** ``` AttributeError: 'int' object has no attribute 'seconds' ``` **Cause:** By default, when creating a work entry through the list view, no `start` or `end` date is provided. This leads to the traceback originating from the following line when computing the duration. https://github.com/odoo/odoo/blob/84b15dc1f866e27d5c8a5fe3e457c2f982bcb133/addons/l10n_fr_hr_work_entry_holidays/models/hr_work_entry.py#L28-L32 **Solution:** Adding an extra check of the `start` and `end` date would resolve this issue. opw-4943104
This update splits lengthy website editor list tests into smaller checks so automated validation is less likely to fail due to slow test infrastructure. It does not change user-facing behavior, but helps keep releases and fixes moving with fewer false failures.
Original PR description
Those tests were too long to be grouped in a single `it` as it would sometime hit the time limit when the runbot was too slow. Putting each of them in separate `it` significantly reduces the likelihood of the issue to occur. runbot-230411 Forward-Port-Of: odoo/odoo#221197
This fix updates internal tests so they pass consistently whether an optional file type detection library is installed or not. It helps keep quality checks reliable across different deployment and development environments without changing user-facing behavior.
Original PR description
Those tests are failing when python-magic is installed. Since 26f9c82b99 Odoo > saas-18.4 has this lib as a requirement and comes with appropriate fixes. This commit adapts some test for versions prior to saas-18.4 to also work when the python-magic lib is installed. Forward-Port-Of: odoo/odoo#221045
When users clicked content that cannot be translated in website translation mode, the same notification could appear more than once. This fix ensures the message appears only once, reducing confusion and improving the editing experience.
Original PR description
Since [1], when clicking a non-translatable element in translation mode, the notification was sometimes shown multiple times due to event bubbling. This commit stops the click event from propagating, ensuring the notification is only triggered once. [1]: https://github.com/odoo/odoo/commit/41e341177611cf69d1bd61e66a809510c22cc1b7
This fix updates the automated skills test so it opens the employee resume tab before checking resume-related content. It helps prevent false test failures in setups without demo data, improving reliability of HR skills validation.
Original PR description
step to reproduce: 1. install l10n_ch_hr_payroll_account 2. without demo 3. run test SkillsTestUI.test_ui added missing step is to go to resume tab in the tour build_error_181683
This update corrects how an internal import test labels spreadsheet files, so it works consistently across environments with different file detection tools installed. It helps keep accounting import quality checks stable without changing user-facing behavior.
Original PR description
[FIX] account_base_import: fix mime type The `test_duplicate_journals_import` test fails when the magic lib is present. While the `xlsx` detection is supported, the test calls the import wizard with `xlsx` files but `application/vnd.ms-excel` as the file type which is for `xls` files. With this commit, the appropriate file type is given and the test works in all cases. (tested with Docker16, PureNoble and PureBookworm docker files) Forward-Port-Of: odoo/enterprise#91267