Daily updates from Odoo
Wednesday, February 5, 2025
23 changes
1 change
Resolved issues and error corrections
This update brings the spreadsheet component to a newer maintenance version with fixes for lookup formulas, borders, hidden headers, and rendering edge cases. Users should see more reliable spreadsheet calculations and cleaner visual rendering, especially in complex or hidden-view scenarios.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/76b12a101 [REL] 17.2.35 Task: 0 https://github.com/odoo/o-spreadsheet/commit/81676e30a [FIX] formulas: accept simple…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/76b12a101 [REL] 17.2.35 Task: 0 https://github.com/odoo/o-spreadsheet/commit/81676e30a [FIX] formulas: accept simple values on search range for lookup formulas Task: 4543381 https://github.com/odoo/o-spreadsheet/commit/7487feb16 [FIX] Borders: Fix border continuity Task: 4523890 https://github.com/odoo/o-spreadsheet/commit/f3f702668 [FIX] Rendering: Skip hidden headers Task: 4535794 https://github.com/odoo/o-spreadsheet/commit/086bb9fc1 [FIX] SheetView: avoid some array allocation https://github.com/odoo/o-spreadsheet/commit/626753162 [FIX] SheetView: remove useless/costy calls to Object.x https://github.com/odoo/o-spreadsheet/commit/447d5c2dd [FIX] Renderer: Do not draw if no canvas Task: 4535794 https://github.com/odoo/o-spreadsheet/commit/314a79a5f [FIX] SheetView: Fix viewports with negative dimensions Task: 4535794 https://github.com/odoo/o-spreadsheet/commit/dc62f65ac [FIX] renderer: Re-fix box rendering Task: 4526742 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: Florian Damhaut (flda) <flda@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>
8 changes
Enhancements to existing features
Point of Sale users can now see which customer orders are being settled, including the remaining amount due, and choose specific orders to pay off. Deposit and settlement lines are shown on receipts and invoices for transparency, while being excluded from tax calculations because they are not sales items.
Original PR description
### Add `settling` and `deposit` orderlines : - Now in PoS when settling an order we want to see the list of the orders for which the customers have due with the remaining due amount for each order. Then we can select the order(s) we want to settle, and it adds orderlines with a ref to the settling order(s). We can also add basic orderlines to the order. - For money deposit money we don't change the flow, so we're still redirected to the payment screen to complete the deposit, and we shouldn't be able to add any other orderlines to the order. That's why deposit orderline are only added to the order at the validation. - From the backend we now have the details of `settling` and `deposit` orderlines. - `settling` and `deposit` orderlines are excluded from tax computation, as these are not sales lines. But we wan't to see these lines on the receipt and invoices community PR: https://github.com/odoo/odoo/pull/193372 task-id: 4342951
Businesses can now create test orders to validate the full UrbanPiper ordering flow before serving real customers. This helps teams confirm setup, preparation display, and point-of-sale handling work smoothly, with added automated checks to reduce regressions.
Original PR description
After this commit: === - The test order functionality is implemented, allowing users to test easily the entire UrbanPiper flow. - Test cases have been added to ensure the order flow operates smoothly. Task-4040543
Cancelled or refused time off is now excluded from the payroll items that need deferral, reducing confusion when preparing payslips. The time off form also hides payroll status for cancelled leave, so HR teams see cleaner and more accurate information.
Original PR description
- Hide the leave payroll state in the time off form view when the leave is cancelled. - Ignore the cancelled leave to deffer when generating the payslips task-4351775
Barcode picking now shows available quantities as soon as a product is selected and keeps scanned locations visible when adding new items. Users can update key picking details through clearer cards and receive a warning before confirming a location where the product is not available, reducing mistakes in warehouse operations.
Original PR description
Before this commit ================== - When adding a product, users were unable to see where it was located until after confirming the quantities were loaded. - During editing, there was no warning…
Before this commit ================== - When adding a product, users were unable to see where it was located until after confirming the quantities were loaded. - During editing, there was no warning if a user selects a location with no available quantity for the product. - If a location was scanned and a new product was added, the default location in the form was displayed instead of the scanned location. With this commit ================ - Quantities are loaded as soon as a product is selected in the form. - Introduced Kanban cards for both list and Kanban views, allowing users to add source or destination locations, packages, lots, and owner details for efficient pickings, exclusively when multi-locations are enabled. - If a location is scanned while adding a new product, the scanned location will now be displayed instead of the default location. - If a user selects a location where the chosen product is not available, a warning wizard appears upon confirmation to confirm whether they truly want to proceed with this selection or not, except for receipts. Task: 3389182
Restaurant preparation screens now split orders by course, helping kitchen staff prepare dishes at the right time. Courses stay pending until they are fired, and timing starts from that fire action so wait times are clearer and more accurate.
Original PR description
This commit enhances the preparation display by splitting order by courses. This allow the kitchen to know when to prepare each course to ensure that the client do not wait too much. • Orders remain marked as “Pending” until the course is fired. • After firing, the displayed time reflects the elapsed time since the “fire” event, instead of the creation time. Task: 4444501
Resolved issues and error corrections
The payroll system now blocks users from creating accounting entries for payslips that are already marked as paid. This prevents accidental workflow changes and helps keep payroll and accounting records consistent.
Original PR description
In the tree view of the payslip model, we can do mass edit to create a journal entry. Before, we were able to perform this action on a paid payslip which does not make sense. Now we have an error message if we try to do it. Task: 3874129
Users who choose Odoo inbox notifications now receive alerts for signature request documents inside Odoo. This makes important signing tasks more visible and helps reduce missed requests for users who rely on the inbox instead of email.
Original PR description
Before this commit: When a user logged in with their notification_type set to inbox, they did not receive notifications in their Odoo inbox for sign request documents, even if they received mail notifications. After this commit: Users will receive notifications in their Odoo inbox for sign request documents if their notification_type is set to inbox. task-3995294
The Documents screen now keeps document actions organized and easier to use on tablets and phones. Selected-document actions are grouped into a single menu, and the mobile layout now better matches the standard Odoo experience.
Original PR description
When you reduce the screen width or view the page on devices with medium/small screens, the control panel button group rearranges itself in an unsightly way (e.g. excessive button height). It also looks like the Documents mobile view is too different from the standard Odoo mobile view. Medium breakpoint and below: ======================= All actions of the selected documents are grouped together in a single dropdown (in the control panel). Small devices, portrait: ================= We make the look and feel closer to the standard Odoo list view for mobile, but we do it also for the kanban view as, in Documents, kanban cards are selectable: - The action dropdown for the selected documents takes the place of the DocumentCogItemMenu. - The list selection box floats to the top left of the navbar. - The details panel toggler in the control panel navigation disappears. task-4471881
14 changes
Enhancements to existing features
Point of Sale customer searches now look for exact matches across key customer details instead of relying on fuzzy scoring. This makes search results more predictable and helps cashiers find the right customer faster, reducing checkout mistakes.
Original PR description
Before this commit, we was using fuzzy search which was creating a score for each partner and then sorting the partners based on that score. This was causing error in search result. Now we use exact match search which will search for the exact match of the search string in the partner name, phone, mobile, email, street, city, state, country, zip, vat, and barcode. taskId: 4517586
Resolved issues and error corrections
Fixes a problem where one failed scheduled message could repeatedly stop all other scheduled messages from being sent. Failed scheduled messages now notify their author and are removed, and messages tied to deleted records are cleaned up automatically.
Original PR description
Purpose: -------- Currently, when posting a scheduled message failed due to an error, the cron interrupts and will attempt to resend the message on each of its subsequent runs and fail again, preventing any scheduled message to be posted. This commit changes the cron behavior to catch any exceptions raised during message posting, notify the author of the message about the failure, and delete the failed scheduled message. This prevents infinite retry attempts. The notification to the author of the scheduled message contains the content of the scheduled message. The rationale is that the posting might fail because the user does not have access to the record it will be posted on anymore, and won't be able to see the scheduled message again. The scheduled messages will now be unlinked when unlinking the record on which they are scheduled. Task-4531402
This update refreshes Odoo's spreadsheet component with several bug fixes. Users should see more reliable formulas, cleaner rendering of hidden headers, borders, and boxes, plus fewer display issues in unusual spreadsheet views.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/90f2af4ff [REL] 18.0.14 Task: 0 https://github.com/odoo/o-spreadsheet/commit/3590a49ee [FIX] formulas: accept simple…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/90f2af4ff [REL] 18.0.14 Task: 0 https://github.com/odoo/o-spreadsheet/commit/3590a49ee [FIX] formulas: accept simple values on search range for lookup formulas Task: 4543381 https://github.com/odoo/o-spreadsheet/commit/48e368c47 [FIX] Rendering: Skip hidden headers Task: 4535794 https://github.com/odoo/o-spreadsheet/commit/fc0aa2a66 [FIX] SheetView: avoid some array allocation https://github.com/odoo/o-spreadsheet/commit/4bcac65b0 [FIX] SheetView: remove useless/costy calls to Object.x https://github.com/odoo/o-spreadsheet/commit/a1ab57a4e [FIX] Renderer: Do not draw if no canvas Task: 4535794 https://github.com/odoo/o-spreadsheet/commit/95266d1ab [FIX] SheetView: Fix viewports with negative dimensions Task: 4535794 https://github.com/odoo/o-spreadsheet/commit/8c4ee5d8f [FIX] Borders: Fix border continuity Task: 4523890 https://github.com/odoo/o-spreadsheet/commit/e1ffbf678 [FIX] renderer: Re-fix box rendering Task: 4526742 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: Florian Damhaut (flda) <flda@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>
Portal users can now select how long a newly created API key remains valid instead of always being limited to one day. Available durations follow the user's group settings, giving administrators control over the maximum validity period for portal users.
Original PR description
Before this commit, for a portal user, the creation of an API key will always be valid for one day. This commit adds the option of selecting a period for which the API key will be valid. The periods proposed take into account of the user's group. Consequently, in the case of a portal user, the administrator must enter a maximum number of days for the portal group (the `api_key_duration` field in the `res.groups` model). opw-4414586
Point of Sale order reports now count products correctly when a product belongs to more than one POS category. This prevents duplicate report lines and avoids overstating quantities or sales activity for affected orders.
Original PR description
**Description:** - If a product belongs to multiple POS categories and is added to a single order, the order report may show duplicate lines based on the number of categories the product is assigned…
**Description:** - If a product belongs to multiple POS categories and is added to a single order, the order report may show duplicate lines based on the number of categories the product is assigned to. **Steps to reproduce:** - Install the 'point_of_sale' module. - Create a product and assign it to multiple POS categories. - Open the POS interface, add that product and validate the order. - Check the order report for this order—the lines will be duplicated based on the number of POS categories the product belongs to. **Screenshots for clarity:** - Product configuration  - Add the product from any of the category.  **Before FIX** - Reporting view for **Orders** you may notice that the product is already double `2` even though we have added single quantity.  - Double line created with same `id` for both the categories.  **After FIX** - Reporting view for **Orders**  - Single line with same product quantity added on the order line.  OPW - 4478667 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
Coupon discounts now calculate correctly when product prices already include tax. This prevents sales orders and point-of-sale orders from showing an incorrect remaining total when a coupon should fully discount the purchase.
Original PR description
Steps to reproduce: - Configure a product with a price of 229. - Assign a tax to the product with the 'Included in Price' option enabled under advanced settings. - Create a new Discount Program with the program type set to 'Discount Code'. - Set a discount of per order, using the same tax as the product. - Create a sales order with the configured product. - Apply the coupon code to the order. Issue: - The total amount of the sales order does not reduce to 0 as expected. - The computed coupon discount amount is incorrect. Cause: - The case for handling tax-included pricing was not taken into consideration when calculating the discount. Fix: - Use the sum of line.price_total when tax-included pricing is applied to accurately compute the price_unit of the reward. opw-4486030 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes onboarding tour drag-and-drop actions when the target is inside an embedded page such as an iframe. It helps guided setup flows, including signing-related tours, behave reliably by detecting drops in the right page context and positioning drop zones correctly.
Original PR description
Before this commit, only pointerup was listened and was on the global document. Now, the event is listened on the ownerDocument of the element. Like that, if the element is inside an iframe, it will be correctly listened. The "drop" is also added to the listened events, because sign doesn't use the draggable hook of owl, instead it uses the vanilla drag and drop system of javascript. The dropzone shown during an onboarding tour is also fixed and takes into account the offset of the iframe in the top document. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Point of Sale Restaurant module now handles Arabic language settings without crashing when dates are formatted. This keeps restaurant operations running smoothly for users working in Arabic by ensuring compatible date digits are used behind the scenes.
Original PR description
When the Arabic language was selected, the PoS Restaurant module would error due to date formatting using Arabic numerals. This commit forces Latin digits in the date format to prevent the error. opw-4544010 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Manufacturing planning now accounts for existing stock and lead times when calculating component demand. This prevents overestimating needed components and improves replenishment timing when products have bills of materials, starting quantities, or maximum replenishment limits.
Original PR description
Steps: - create a BOM for product A: component product B, ration 1.0, lead time 1 day - put 4 as the on-hand qty of product A - in the MPS, create records for products A & B with manufacture route for product A - put 6 as the forecasted demand of product A on the 2nd period or further (this is so that the indirect demand of B is shown on the previous period) Issue: The indirect demand of product B will be 6 instead of 2 (6-4). This is because it uses `date_stop` with the lead time, see https://github.com/odoo/enterprise/pull/70232 Fix: Subtract the starting qty from the indirect demand qty for the corresponding subproduct. This is to make sure that the real `subproduct_indirect_demand` is compared to the 'ratioed' `replenish_qty` of the subproduct when selecting the date to use. task 4381021
This fix prevents crashes when migrated document actions are run after upgrading to Odoo 18. It makes accounting document actions handle migrated journal references correctly, so users can continue processing documents without interruption.
Original PR description
After this commit https://github.com/odoo/enterprise/commit/574d608b21199d5590d2335f4360a0a6470d1257, The workflow actions have been removed and replaced by server actions and this PR is responsible for handling the migration of workflow actions into server actions.(see https://github.com/odoo/upgrade/pull/6729) ``` AttributeError: 'int' object has no attribute 'create_document_from_attachment' ``` We created server actions sending to `journal_id` as `int` when migrating dbs to 18.0. While the method originally supported only recordsets, it's actually convenient to support `int`s here to avoid browse in the action (more readable and more accessible to end-users). opw-4453249
This fix ensures subscription records include invoices linked directly through subscription lines, even when no invoice is found through the original sales order line lookup. This helps users and automated processes see complete invoice information across company access scenarios.
Original PR description
Since https://github.com/odoo/enterprise/commit/b198b60d337d2ea6a5d17872fb621322df57a20f get_invoiced should also return the invoice linked with the subscription based on the field account.move.line.subscription_id. Unfortunatly, if the query based on sale_line_ids found no invoice for a given origin_order_id, the invoice found based on subscription_id were not added. This can easily happen when the invoice are read by a user (for example odoo bot) that doesn't belong to the company of the invoice. Solution: Invoice by origin_order_id should come from the result of the query + move_by_origin
This fixes demand calculations in manufacturing planning for warehouses that use multi-step delivery flows. It ensures the planning view counts the right delivery movement so businesses see more reliable actual demand and can plan production more accurately.
Original PR description
If a warehouse has multi-steps deliveries, the actual demand of a product only takes the real outgoing move into account: the move that goes directly to the customer location. Since moves are not created in advance anymore, we need to take the earlier moves in the chain into account instead while making sure that we only use a single move at a time. The move used will be the last created in the chain, the one without `move_dest_ids`. task 4510137
Fixed an error that could occur when inserting a CRM graph view into a spreadsheet. The spreadsheet now correctly uses the current context, preventing failures for users working with sales team pipeline charts.
Original PR description
Steps to reproduce: CRM > Sales > Teams > Pipeline > Graph View >Insert Into Spreadsheet => Boom: Name 'active_id' is not defined. The action context contains a dynamic value, which needs the *current* to be evaluated. Task: 4548431 opw-4491590 opw-4500397
Copying a previous week in Planning now creates the expected number of shifts when the employee has time off in the new week. This prevents duplicate shift entries on available days, keeping schedules clearer and reducing manual cleanup for planners.
Original PR description
Steps to reproduce: ------------------- 1. Install the Planning App 2. Pick a week and assign a shift from Monday to Friday for a resource A 3. Create two time offs for resource A: one on Tuesday and…
Steps to reproduce: ------------------- 1. Install the Planning App 2. Pick a week and assign a shift from Monday to Friday for a resource A 3. Create two time offs for resource A: one on Tuesday and one on Thursday of the week after you created the shift 4. Now, in the planning gantt view, move to the next week (the week after you created the shift) 5. Use the copy previous week action 6. The copied shifts are split in a way they shouldn't. On Monday, Wednesday and Friday, there are two copied slots instead of just one. Fix: ------------------- Currently, the _merge_slots_values() method is called when we use copy previous week on a forecasted slot (> 24 hours), which is the case here. This method takes work intervals and unavailabilites in parameters, and returns merged slots by taking into account the unavailabilites. To fix the issue mentioned above, we removed a condition that only allows slots to be merged if their combination creates a forecasted slot (> 24 hours). But we argue that we should also be able to merge smaller slots (< 24 hours). task-4368919 version-18.0