Wednesday, October 16, 2024
7 changes · saas-17.4
Resolved issues and error corrections
This fix prevents small decimal rounding differences from reducing calculated kit availability by one unit. It helps keep manufacturing availability figures accurate after a prior rounding behavior change.
Original PR description
As this pr is [merged] (https://github.com/odoo/odoo/pull/152709) so due to this ``float_round`` behaviour is bit changed due to that here is test case is failing in upgrade that checks the…
As this pr is [merged] (https://github.com/odoo/odoo/pull/152709) so due to this ``float_round`` behaviour is bit changed due to that here is test case is failing in upgrade that checks the qty_available with product their is difference come. [Here](https://github.com/odoo/odoo/blob/251ef3edcc7e0894683acb7c69bfa437a024110f/addons/stock/models/product.py#L207) before product record ``qty_avaliable`` (it non stored field and compute) to come like this ``'qty_available': 0.7000000000000001 `` after new changes in ``float_round`` after this [pr](https://github.com/odoo/odoo/pull/152709) in 17.4 value is ``'qty_available': 0.7`` coming like this and after dividing [here](https://github.com/odoo/odoo/blob/913c081a8687d0f2aa6c40faeee9013fa10865db/addons/mrp/models/product.py#L280) with 0.1(qty per kit) becomes like ```py before 0.7000000000000001/0.1 7.0 after 0.7/0.1 6.999999999999999 ``` while taking quotent [here](https://github.com/odoo/odoo/blob/b3d61b372a8cd315f9063b6add634ad194f3341b/addons/mrp/models/product.py#L264) it taking 6 instead of 7 so this difference come and test case failed ``` AssertionError: Lists differ: [[142[456 chars]63, '7'], [14264, '0.7'], [14265, '-30'], [142[12426 chars]-2']] != [[142[456 chars]63, '6'], [14264, '0.7'], [14265, '-30'], [142[12426 chars]-2']] First differing element 27: [14263, '7'] [14263, '6'] Diff is 15569 characters long. Set self.maxDiff to None to see it. : Invariant check fail ``` for correcting this as discussed here https://github.com/odoo/odoo/pull/152709#issuecomment-2383006955 this fixed is proposed. 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
The Point of Sale product logic now uses the intended process for identifying archived product option combinations. This helps keep archived product variants handled consistently and reduces the risk of incorrect product data appearing in POS workflows.
Original PR description
Before this commit, archived combinations were computed using a different method, despite the existence of a specific function designed for this purpose. opw-4261061 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix restores missing colored borders in printed invoice reports, including Chilean invoice layouts. It ensures the PDF printing tool can read the border styling correctly, so customer-facing documents appear complete and professional.
Original PR description
Elements with border class are missing the colored border How to reproduce: With a cl company setup Create an invoice to a CL partner Print invoice Issue: Border of top right element is missing This occurs because wkhtmltopdf is not recognizing the css vars opw-4210167 opw-4211635
This update removes a redundant setup step from web client tests because the router is already started automatically by shared test helpers. It keeps the test suite simpler and reduces the chance of duplicated setup causing confusion, with no expected effect on end users.
Original PR description
Before each test on load_state.test.js and push_state.test.js, the startRouter function is called. This is not necessary, because is already called in : https://github.com/odoo/odoo/blob/3f142f332ef1eb168f91c6a83346c9c28a169aba/addons/web/static/tests/_framework/env_test_helpers.js#L109
Users editing links can now choose a suggested link from the dropdown with the keyboard without accidentally applying the old value. This makes link creation and editing in the web editor more predictable and reduces mistakes when using keyboard navigation.
Original PR description
### Steps to reproduce: - Open the To-do app. - Enter /link and provide a label. - Type / (e.g., /web) in the link dialog to preload available links. - Use the arrow keys to select a link from the dropdown. - Press Enter. - Edit the link again and check the result. ### Description of the issue/feature this PR addresses: Selecting a link from the dropdown with Enter would directly apply the link in the dialog, ignoring the selected dropdown link. ### Desired behavior after PR is merged: Selecting a link from dropdown with Enter now correctly updates the link dialog with the selected link, and pressing Enter again applies the updated link.
This update makes the purchase order portal page easier and safer for partners or implementers to customize. It adds clearer identifiers in the page structure, reducing the risk of fragile custom changes breaking during future updates.
Original PR description
Add some ids to avoid xpaths like "//th[3]" etc. task-4250697
The restaurant appointment demo setup now keeps timezone and duration details hidden by default for table bookings. This makes the sample configuration cleaner and more aligned with the intended customer-facing booking experience.
Original PR description
Turn off 'Show Timezone' and 'Show Duration' by default in 'Table' demo data. Task-4247801