Daily updates from Odoo
Wednesday, July 3, 2024
7 changes
4 changes
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
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
1 change
Resolved issues and error corrections
The appointment kanban card action button now appears in the intended middle-right position instead of at the top-right. This improves visual consistency and makes the button easier for users to find when managing appointment types.
Original PR description
Purpose ======= Fix the kanban action button which was displayed in the top right of the card instead of in the middle right. Specification ============= A top-0 bootstrap rule has been added to the kanban dropdown menu. As this rule is set directly on the element, it overwrittes the top: 30% css rules applied on the action button in appointment. Fixing the issue by defining the appointment top: 30% rule as "!important". related commit: https://github.com/odoo/odoo/commit/016df52334cf475b2b416b2e927a19dd4d82d557 Task-4023603
2 changes
Resolved issues and error corrections
This update resolves a visual issue in the Sign app where the 'Sign Now' button was causing unwanted spacing in the breadcrumb navigation when users zoomed in on the sign template view. A CSS styling adjustment ensures the button no longer breaks the text layout, providing a cleaner and more professional appearance.
Original PR description
**Version:** - saas-16.3 **Step to reproduce:** - In the sign app, open the sign template iframe view. - When zooming in, the 'Sign Now' button breaks the text and creates extra space in the breadcrumb. **Issue:** Currently, the sign now button text creates extra spacing. **Solution:** Add the CSS class so that it will not create additional spacing task-3977792 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix removes a duplicate display of the planned date field that was appearing twice when viewing tasks in the customer portal. The issue was caused by an xpath being added twice in the template, and removing the duplicate ensures a cleaner, less confusing user experience when checking task details.
Original PR description
Steps: - Install Website and Project module - Open the Project module - Open any project's task - Set the Planned date - Now go to the Website module - Go to My Account - Open Tasks - Open any my task Issue: - When we open any my task in portal , there is planned date show twice time . Cause: - Added xpath twice time. Fix: - remove an xpath from the portal my tasks. task-3610485