Daily updates from Odoo
Thursday, November 21, 2024
19 changes · 18.0
Resolved issues and error corrections
This fixes a problem where a test retry check could fail after an earlier test failure, creating misleading logs. The change helps keep automated test results clearer and more reliable for teams monitoring product quality.
Original PR description
Since auto retry was disabled after the first failure (see #162990), the test_retry test suite will systematically fail if another test fails before, adding confusing logs. Fix the way the retry count is detected to solve the issue.
New products created while importing sales documents now keep the unit of measure from the sales line, such as dozens instead of defaulting to units. This helps avoid pricing and quantity mistakes when products are created automatically during sales import workflows.
Original PR description
Steps: - Go to sales. - Enable UOM from settings. - Export Purchase EDI file with Dozens UOM on product in another DB. - Import that file here in sales. - Since that product is not created here in our db create product on fly from SOL. Issue: - Newly created product does not have Dozens UOM instead it set to Unit and update it in SOL so price on SOL and product is according to Dozens UOM and UOM set on product and SOL is Unit which can lead to issues. Cause: - Missing context to set default UOM from SOL to product. Fix: - Added `default_uom_id` context on product field on SOL view. - Ensure that an uom is always provided to the creation values even if `default_uom_id` is set to `None` in the context, since `uom_id` is a required field on products. - Updated sale_timesheet code to avoid overwriting default values when product is not a timesheet product opw-4316426
This fix lets website grid sections grow vertically when content needs more space, such as on smaller screens or when translated text is longer. It helps prevent cramped or cut-off content, improving the browsing experience for visitors.
Original PR description
Website CSS grid bug fix affecting responsiveness to smaller screen resolutions. **Description of the issue/feature this PR addresses:** Having `grid-auto-rows` fixed at 50px stops the grid cells from growing in a responsive manner. **Current behavior before PR:** Grid cells don't respond to changes in screen resolution or changes caused by the content being translated to a different language. **Desired behavior after PR is merged:** Using the `minmax()` CSS function allows the grid cells to expand vertically to accommodate content that exceeds the minimum height of 50px, improving responsiveness on smaller screens. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update prevents receipt validation failures when a product is changed from lot-based tracking to quantity-based tracking. It automatically clears the lot valuation setting when it no longer applies, helping purchasing and inventory flows continue without manual correction.
Original PR description
Issue: Cannot validate receipts for products whose tracking changed from lot to quantity. Steps to reproduce: - Install both Inventory & Purchase apps - Create a new product - Track the product's inventory by Lot and set it's valuation by Lot - Set the product's tracking in inventory by quantity - Create a Purchase Order for the product - Confirm the PO - Validate the linked Receipt Cause: Lot valuation is not set to False when changing the tracking of a product from lot to quantity. Solution: Add an onchange on the "[tracking](https://github.com/odoo/odoo/blob/78b8a1670b5272c820f64ef904f4bdf00760031e/addons/stock/models/product.py#L694-L700)" field to update "lot_valuated" to False when **lot_valuated is still True** despite **no tracking being specified**. Ticket: [4345571](https://www.odoo.com/odoo/project/49/tasks/4345571) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
A website test step related to hiding the header while scrolling was corrected after it broke in no-demo builds. This helps keep automated quality checks reliable without changing the customer-facing website experience.
Original PR description
in commit https://github.com/odoo/odoo/pull/182289/commits/b18e284da99ff3ae10ef03f12fdcb13efc3acbd1 one of the steps of dropdowns_and_header_hide_on_scroll tour got broken. This commit aims to fix that error. [runbot errors](https://runbot.odoo.com/web#id=105122&menu_id=424&cids=1&action=573&model=runbot.build.error&view_type=form) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures company-specific numeric and yes/no fields handle empty default values correctly when saving updates. It prevents incorrect stored values and keeps company-dependent settings consistent across records.
Original PR description
The problem is caused by https://github.com/odoo/odoo/pull/184275 For company dependent Boolean/Integer/Float fields, if fallback is unset or falsy, the value filled to cache can be `None` after fetch. When `_flush` `None` in cache for these fields should be converted to the logical equivalent `False`/`0`/`0.0` to allow SQL to compare with the fallback value and drop them when UPDATE opw-4313425 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
Payment transactions can now be completed even when they are linked to more than one invoice due to changes made while the customer is redirected or while webhooks are delayed. The process now selects one eligible posted invoice instead of crashing, reducing failed payment follow-up and manual intervention.
Original PR description
When post-processing a payment transaction, if could happen that the transaction is linked to multiple invoices. Several things can happen while a customer is redirect to a payment provider up to when we post-process the payment (we may long delay for some webhooks), like salesman create multiple downpayment invoices, accountant cancel a pre-existing invoice, etc... In such case we were crashing with a singleton error because `_get_invoice_next_payment_values()` only accept a single recordset. This commit ensure we only match a single posted invoice. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where selecting text across chatter messages in Firefox could trigger an error. The editor now ignores selections outside its own area, improving reliability when users interact with messages around editable fields.
Original PR description
**Problem**: When selecting nodes outside the editor in chatter, attempting to set the selection results in a traceback. This issue occurs because the `setSelection` logic does not properly handle cases where the selected node falls outside the editor's context. **Solution**: Add a check to ensure that the `setSelection` logic does not execute if the selection is outside the editor. same as what we have in 17.0: https://github.com/odoo/odoo/blob/288f815382f6d4f857c233c4627774f1992af5ba/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js#L2608-L2610 **Steps to reproduce**: 1. Open any form with chatter in Firefox. 2. Select text across multiple messages in the chatter. 3. A traceback occurs due to improper handling of selections outside the editor. opw-4345728 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix restores the ability for shoppers to select pickup point locations during checkout when using website sale collection with Sendcloud. It prevents the selection button from being incorrectly disabled when optional location details are missing.
Original PR description
Steps to reproduce: - install website_sale_collect - setup a sendcloud delivery method with pickup points - try to select a location Bug: The `Choose this location` button is disabled This is a tiny partial revert of https://github.com/odoo/odoo/pull/180754. The replacement of the chain of `and` cannot be replaced by the ?. operator, as they will return !False and thus disable the button even if `additionalData` (and the other following items of the ?. chain) is not present on the selected location. opw-4283739 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix prevents the HTML editor from showing an error when users press Tab while working with nested lists. It makes list editing more reliable and avoids interruptions while formatting content.
Original PR description
Description of the issue/feature this PR addresses: The issue occurs when `mergeSimilarLists` is triggered, leading to a call to `compareListTypes`. If `a.firstElementChild` or `b.firstElementChild` is null, attempting to access their `tagName` causes an error. Desired behavior after PR is merged: The traceback no longer occurs.
This fixes an issue where serial numbers added or changed on Point of Sale order lines were not always shown correctly in the cart. Staff can now see the correct serial numbers when adding the same tracked product multiple times or updating its serial numbers, reducing order errors for tracked items.
Original PR description
When adding/modifying SN on an orderline in the PoS the changes where not always correctly reflected and sometimes it was just not displayed. Steps to reproduce: ------------------- * Create a product tracked by SN * Open PoS * Add this product to the cart and put SN 1 * Add the same product by clicking on it, and put SN 2 > Observation: The item in the cart won't be updated correctly, only one SN will be shown * Click on the lot icon * Add a new SN 3 > Observation: Again the new SN won't be shown opw-4323167
This fix makes Odoo's code upgrade command clearer and more reliable when run directly or through odoo-bin. It now requires the needed add-ons path information, uses sensible defaults where appropriate, and avoids a crash when no files match the requested pattern.
Original PR description
* Requires --addons-path and prints the correct usage when used standalone. * Ensure --addons-path is populated with the default paths when used with odoo-bin. * Fixed 0/0 division by zero error when no file match the glob. 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 fixes a typo that caused an incorrect value to appear in Spanish TicketBAI XML documents. The change helps ensure submitted electronic tax documents contain the expected information and reduces the risk of reporting errors.
Original PR description
Fix a typo in that led to wrong value in tbai xml document. opw-4331383
Salespeople can once again view invoices linked to their sales orders without needing Accounting or Billing permissions. This fixes an access error related to Indonesian e-Faktur data, helping sales teams follow up on customer invoices smoothly.
Original PR description
Salesman have access to see invoices (from orders) but when opening one, an access error it raised: `You are not allowed to access 'Available E-faktur range' (l10n_id_efaktur.efaktur.range) records.` This commit allow salesman without `Accounting / Billing` to see their invoices again. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The mobile messaging menu and Discuss app now use less spacing between conversation items. This lets users see more conversations on screen while keeping each item easy to tap with a thumb.
Original PR description
There was too much spacing in the mobile messaging menu and mobile discuss app. This PR reduces is so more item are visible while still being easily clickable with a thumb tap. <img width="1236" alt="Screenshot 2024-11-20 at 17 09 06" src="https://github.com/user-attachments/assets/bccaef0e-150f-4365-a224-e405435afa26">
The partner form now shows the customer's follow-up status, making it easier for staff to see collection status at a glance. It also adds a direct link to the partner's overdue invoices, helping teams act faster on outstanding payments.
Original PR description
The followup status of the partner is added to the partner form view with an additional link to see the list of overdue invoices for the partner. task-4320967
Rental and subscription sales now carry over the unit of measure chosen on the sales line when creating products. This keeps these workflows aligned with standard sales behavior and helps avoid incorrect product setup or ordering details.
Original PR description
To ensure that products created from sale order lines correctly use the uom set on the line, a new `default_uom_id` has been added to the field `context`. This commit makes sure the same change is applied in rental & subscriptions, as both modules inherit from the base `sale` view and overwrite the `context` attribute to add their own keys. opw-4316426
Opening or refreshing a direct link to a document now shows the intended item even when default document filters are configured. This prevents users from landing on an empty or filtered-out view when sharing or revisiting document URLs, including items without previews such as requests or links.
Original PR description
Reproduce: 1. Add the context key `search_default_my_documents_filter` in Documents action context 2. Go in a folder where a document exist that does not match this filter 3. Copy the url of this document (copy url when it is selected) 4. Paste in navigation bar (or refresh page) 5. You do not end up on the document because the default filter still applied This commit prevents loading default filters when we come from such URLs. While we're here, we remove the check on open_preview which was incorrect (e.g., requests and urls have no preview but should be accessible this way too). Follow-up of https://github.com/odoo/enterprise/commit/3418e7318ed993abc2a601ae601e7214e28293a3 (https://github.com/odoo/enterprise/pull/74028) Task-4342960
Portal users can now cancel creating a new folder in Documents without seeing an error screen. This prevents an interruption in the Documents workflow and provides a smoother experience for external users.
Original PR description
**How to reproduce:** Login with portal. Click on New button. Click on Folder button. Click on Discard button. Traceback will be displayed. **After this PR:** Prevent traceback when portal users click the discard button. Task-4330910