Wednesday, September 4, 2024
4 changes · saas-17.2
Resolved issues and error corrections
This fix prevents very small delivery quantities from being shown with long, confusing decimal values in the Barcode app. Users now see quantities rounded and formatted consistently with their unit-of-measure settings, improving clarity during warehouse operations.
Original PR description
### Steps to reproduce: - Enable "Units of Measure" in the settings - Inventory > Configuration > Units of Measures > UomCategories - Click on Unit and change the rounding precision from 0.01 to…
### Steps to reproduce: - Enable "Units of Measure" in the settings - Inventory > Configuration > Units of Measures > UomCategories - Click on Unit and change the rounding precision from 0.01 to 0.0001 - In debug: Settings > Technical > Database Structure > Decimal Accuracy - Change the Decimal Accuracy to 4 Digits - Create and mark as to do a delivery order for 1 unit of a product 1 that you have in stock - Barcode > Operations > Delivery Orders > "your delivery" - Click on the pencil to change the quantity of the move line to 0.0153 > You are redirected to the view of the picking and the line is displayed as: **0.015300000000000001/1.0** Cause of the issue: The float system of Odoo introduce inaccuracies at high rounding precision. When you set the qty_done of the `stock.move.line` to 0.0153 the framework is going to format this float value to be written as 0.015300000000000001. Fix: To not alter comparison using backend values we format the float in the view. opw-4110401
Planning users who choose Add to Calendar now receive the expected calendar file instead of being taken to an internal planning screen. This restores the intended flow and helps users add shifts or planning events to their calendar without confusion.
Original PR description
When an internal user with planning access performs the Add to Calendar action, the planning backend view opens instead of downloading the ICS file.This commit fixed this behavior. task-3978534
This update makes an automated website editor test more stable by adding checks that wait for the page content to be ready before continuing. This reduces random test failures and helps keep website changes safer to release.
Original PR description
In this commit, we fix undeterministic test_html_editor_scss tour. To fix this behavior, we add few additionnal steps to check the state of DOM before continuing the tour.
This fix improves Odoo's internal web test environment so tests can identify the correct page element instead of accidentally selecting test framework overlays. It helps make automated test results more reliable and reduces false failures during development.
Original PR description
This commit introduces a global mock for the document `elementFromPoint` and `elementsFromPoint` methods, so that it ignores both Hoot's fixture and UI container. This has been done since when not debugging a test, the fixture is z-indexed behind the body and both of these methods would consider them accordingly, meaning that production code relying on these methods would consistently get the Hoot UI or the body instead of the desired element. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr