Daily updates from Odoo
Wednesday, July 3, 2024
5 changes · saas-17.2
Resolved issues and error corrections
This update fixes and improves Odoo's internal HOOT testing tools, including better error handling, event simulation, storage mocks, and test search behavior. It helps developers catch issues more accurately and keeps automated tests stable without changing normal business workflows.
Original PR description
## Pull Request HOOT (PRHOOT) - part 19 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4:…
## Pull Request HOOT (PRHOOT) - part 19 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 Part 10: https://github.com/odoo/odoo/pull/155639 Part 11: https://github.com/odoo/odoo/pull/156255 / https://github.com/odoo/enterprise/pull/58135 Part 12: https://github.com/odoo/odoo/pull/156869 Part 13: https://github.com/odoo/odoo/pull/158384 / https://github.com/odoo/enterprise/pull/59019 Part 14: https://github.com/odoo/odoo/pull/158916 Part 15: https://github.com/odoo/odoo/pull/160292 / https://github.com/odoo/enterprise/pull/59971 Part 15.5: https://github.com/odoo/odoo/pull/166463 Part 16: https://github.com/odoo/odoo/pull/166311 Part 17: https://github.com/odoo/odoo/pull/168328 Part 18: https://github.com/odoo/odoo/pull/171004 / https://github.com/odoo/enterprise/pull/65657 Enterprise: https://github.com/odoo/enterprise/pull/65767 This pull requests brings various improvements and fixes to Hoot and the Odoo unit test ecosystem. See the different commit messages for more details. Note: these changes are made in stable to avoid having to support multiple versions of the HOOT API. As such, these changes are intended to be strictly limited to unit tests as to not put the rest of the code base at risk. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update refreshes Odoo's spreadsheet component with several fixes that improve everyday reliability. Users benefit from smoother sheet renaming, corrected find-and-replace behavior, better translation handling, and improved compatibility when working with Excel files.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/fb0d97942 [REL] 17.2.14 Task: 0 https://github.com/odoo/o-spreadsheet/commit/687b8600c [FIX] XLSX: Update the list of…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/fb0d97942 [REL] 17.2.14 Task: 0 https://github.com/odoo/o-spreadsheet/commit/687b8600c [FIX] XLSX: Update the list of 'future' functions of Excel Task: 4017114 https://github.com/odoo/o-spreadsheet/commit/fac2351f9 [REL] 17.2.13 Task: 0 https://github.com/odoo/o-spreadsheet/commit/ef733da35 [FIX] BottomBarSheet: Prevent drag of sheet while editing its name Task: 4010842 https://github.com/odoo/o-spreadsheet/commit/235ff4cc8 [FIX] model: mark default translations as loaded Task: 3999116 https://github.com/odoo/o-spreadsheet/commit/af15d3af3 [FIX] find_and_replace: fix previous command Task: 3839575 Co-authored-by: Anthony Hendrickx (anhe) <anhe@odoo.com> Co-authored-by: Alexis Lacroix (laa) <laa@odoo.com> Co-authored-by: Lucas Lefèvre (lul) <lul@odoo.com> Co-authored-by: Dhrutik Patel (dhrp) <dhrp@odoo.com> Co-authored-by: Adrien Minne (adrm) <adrm@odoo.com> Co-authored-by: Mehdi Rachico (mera) <mera@odoo.com> Co-authored-by: Rémi Rahir (rar) <rar@odoo.com> Co-authored-by: Pierre Rousseau (pro) <pro@odoo.com> Co-authored-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
Fleet contract reminder calculations now skip contracts that do not have an expiration date. This prevents errors when checking reminder dates and helps ensure fleet contract alerts continue to work reliably.
Original PR description
_compute_contract_reminder is reading 'fleet.vehicle.log.contract' records with null expiration_date, later expiration_date is compared with a date without checking its validity. expiration_date can be null according to this: https://github.com/odoo/odoo/blob/saas-17.2/addons/fleet/models/fleet_vehicle.py#L261 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures internal links work even when users click on text, icons, or other elements inside the link rather than the link itself. It improves navigation reliability in the web interface and prevents clicks from being ignored in common UI layouts.
Original PR description
Before this PR, a click on an internal link would not trigger the loadState if the click was not directly on the `a` element. This is because the children of `a` don't have a `href` element. This PR fixes the issue by using the closest `a` as a reference for the `href`.
This change makes an internal web test more reliable by ensuring a dialog is fully shown before the test continues. It helps reduce random automated test failures, improving confidence in release checks without changing user-facing behavior.
Original PR description
runbot issue : 70187