Daily updates from Odoo
Friday, July 10, 2026
386 changes
21 changes
New functionality added to Odoo
Odoo can now recognize and contact WhatsApp users through business-scoped user IDs when phone numbers are not provided. This improves customer matching and continuity for businesses using WhatsApp messaging, while also avoiding crashes when WhatsApp returns an error message.
Original PR description
Add support for whatsapp business-scoped user ids as outline in the [documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids) for their introduction this June. This effectively adds a table mapping BSUID to contacts to enable contacting users who contact the business directly, as the business will now not necessarily be provided with their number. Additionally the “whatsapp id”, i.e. the canonical form of the phone number as stored in whatsapp, is stored to help better match contacts regardless of formatting details in odoo and whatsapp. task-5476552 Forward-Port-Of: odoo/enterprise#117782
Enhancements to existing features
German POS certification now handles retail and restaurant transactions separately, matching Fiskaly’s recommended flow. This improves compliance reliability by starting transactions earlier, avoiding unnecessary updates for retail sales, and sending only relevant kitchen updates for restaurant orders before final validation.
Original PR description
In this commit: ------------------ - Maintain separate Fiskaly transaction flows for retail (short tx) and restaurant (long tx) orders as discussed with the Fiskaly team. - `Initialize order…
In this commit: ------------------ - Maintain separate Fiskaly transaction flows for retail (short tx) and restaurant (long tx) orders as discussed with the Fiskaly team. - `Initialize order transactions` with an empty payload when the `first product` is added. - Start `receipt transactions` with an empty payload when the `first payment line` is added. - For retail flows, no intermediate order updates are sent to Fiskaly before finalization. - For restaurant flows, create additional transaction updates during kitchen synchronization. Ensure already synchronized products are not resent, and only newly added or updated quantities are included in the payload. - `Finalize order and receipt transactions` with complete order lines and payment details when we validate the order. task: 6208963 Reference: <img width="1863" height="1285" alt="de_tss_flow" src="https://github.com/user-attachments/assets/9140788e-7948-4a08-9f11-27197b22ca8b" /> Forward-Port-Of: odoo/enterprise#120529 Forward-Port-Of: odoo/enterprise#117526
Database information can now include the status of the Know Your Client process. This helps business users quickly see whether customer verification is complete or still needs attention.
Original PR description
Add a new type kyc_status to display the status of the Know Your Client procedure in the databases. Task-id: [6348952](https://www.odoo.com/odoo/project.task/6348952) Forward-Port-Of: odoo/enterprise#122510
Shopfloor now follows the same rules as the backend when work order quantities are updated, avoiding unintended changes to the quantity being produced in continuous production. The work order form layout was also reorganized to make production information clearer and more consistent.
Original PR description
In this commit, shopfloor is modified in order to match the behaviour in the backend; On updating WO's quantity, the quantity producing is not updated if its a continuous production. Workorder form fields were also re-ordered as a part of the ongoing continuous production clean. Task: 6346515
Resolved issues and error corrections
Fixes an error that could block Kenyan POS refund validation and also affect batches of offline orders syncing back online. Refunds and synced orders are now processed individually so eTIMS reporting and receipt generation can complete reliably.
Original PR description
Steps to reproduce: 1. Install `l10n_ke_edi_oscu_pos`, set company to Kenya. 2. Sell and validate an order. 3. Refund it from the POS and validate the refund order. Issue: - A traceback is raised…
Steps to reproduce: 1. Install `l10n_ke_edi_oscu_pos`, set company to Kenya. 2. Sell and validate an order. 3. Refund it from the POS and validate the refund order. Issue: - A traceback is raised when validating the refund: `ValueError: Expected singleton: pos.order(<refund>, <original>)` raised in `get_l10n_ke_edi_oscu_pos_data`. Cause: - When syncing a refund, `sync_from_ui` returns both the new refund order and the original refunded order. `waitForPushOrder` forces post-processing for every Kenyan order in that list, so `beforePostPushOrderResolve` receives both ids in `order_server_ids` and forwards them as-is to `action_post_order` and `get_l10n_ke_edi_oscu_pos_data`, both of which expect a single record. `action_post_order` fails the same way, but its error was silently swallowed by the surrounding try/catch, letting the traceback surface only on the second call. - The same multi-id list is also produced whenever several orders created offline get synced together once back online. Solution: - `get_l10n_ke_edi_oscu_pos_data` is only needed for the receipt of the order being validated, so call it with `order.id` instead of the full `order_server_ids` list. - Replace the `action_post_order` call with `action_post_selected_orders`, which posts each order individually and skips ones already sent to eTIMS, correctly handling both the refund case (original order is already `sent`) and the offline multi-order sync case. opw-6364221 Forward-Port-Of: odoo/enterprise#123043
This fixes an issue where managers could not request an employee appraisal if the scheduled appraisal date had already passed. The change removes an unnecessary date update during appraisal creation, so users no longer need extra permissions or workarounds to proceed.
Original PR description
# How to reproduce You need to simulate the fact that you are creating an appraisal late so either : A) Directly edit the `next_appraisal_date` in SQL B) Go to Employee App > any Employee > Settings,…
# How to reproduce You need to simulate the fact that you are creating an appraisal late so either : A) Directly edit the `next_appraisal_date` in SQL B) Go to Employee App > any Employee > Settings, set Next Appraisal Date to tomorrow and wait for 2 days Then : - Click on Request Appraisal - Save # The problem An error is shown saying "You cannot set 'Next Appraisal Date' in the past.". You can workaround this by changing the Next Appraisal Date to a date in the future, but the problem is not every user has the right to do this. # Cause `next_appraisal_date` is also defined in hr.appraisal as a relate field of hr.employee : https://github.com/odoo/enterprise/blob/0226ad15abc8db70f8e379fddec3d83d15749c85/hr_appraisal/models/hr_appraisal.py#L56-L57 When creating an hr.appraisal, `next_appraisal_date` is present in `vals_list` because it is defined in the view since : https://github.com/odoo/enterprise/commit/58fba3098f33db82dfbccca2db229550402ed3ab https://github.com/odoo/enterprise/blob/0226ad15abc8db70f8e379fddec3d83d15749c85/hr_appraisal/views/hr_appraisal_views.xml#L92 This triggers a write on `next_appraisal_date` of hr.employee which triggers a constraint : https://github.com/odoo/enterprise/blob/0226ad15abc8db70f8e379fddec3d83d15749c85/hr_appraisal/models/hr_employee.py#L81-L85 opw-6147865 Forward-Port-Of: odoo/enterprise#122440 Forward-Port-Of: odoo/enterprise#114876
This fix ensures planning calendar popovers have the user information they need to open correctly. It prevents an error that could interrupt users viewing field service planning slots.
Original PR description
add the user_ids field to the calendar view because its needed in a popover task: 6358644
This change restores fields used to identify beneficiaries on payroll salary attachments after they were removed in an earlier update. It keeps existing refund handling in place while allowing beneficiary bank details to be used again for regular, non-refund attachments, reducing disruption to payroll payment workflows.
Original PR description
In this previous PR (https://github.com/odoo/enterprise/pull/114188) we removed the is_refund flag and, together with it, also the fields related to the beneficiary. This is because there is an onchange method on is_refund that sets the beneficiary bank account for any attachment that is not a refund to False. However, while the removal of is_refund is still in the plans, we want to take back the beneficiary fields and use them even in the case of non-refund attachments. We need to think better about how to remove the is_refund field and structure negative attachments around it, so for now we revert the previous PR. Task: 6376383
Donation products in Website Sale Subscription are now explicitly set up without sales tax. This prevents donors from being incorrectly charged tax when making a donation, aligning the checkout experience with the intended tax responsibility.
Original PR description
**Steps to reproduce:** 1. Install `website_sale_subscription` 2. Open the Products page, search for Donation and open the products **Issue:** A default Sales Tax is applied on the donation products. If a visitor donates money, they will be charged the sales tax. **Expected behavior:** Donation products should not include tax when web visitors donate money. Tax responsibility does not fall on the donors. **Why this happens:** When a `product.template`record is created without an explicit `taxes_id`, the field falls back to the default, which resolves to `company.account_sale_tax_id`. opw-6367188
The warning shown when a single employee or resource does not match a shift's required role now uses the correct wording. This small fix makes the Planning app message clearer and more professional for users.
Original PR description
Currently, when a (or multiple) resource(s) do not have the role for a particular shift, a warning is displayed. However, in the case where only one resource does not have the correct role, the following warning was displayed, "resource_name don't have the required role for this shift", instead of "doesn't". task-6153932 Forward-Port-Of: odoo/enterprise#120899
Order fetching for UrbanPiper point-of-sale integrations now combines related order requests into a single server call. This reduces waiting time and server load when retrieving orders, making order synchronization more efficient without changing user workflows.
Original PR description
Issue: pos_urban_piper overrode getServerOrders() to add a separate loadServerOrders() call for it's own orders before delegating to super, resulting in up to an additional sequential RPCs on every order fetch. Fix: Extract the base query domain into a new overridable getServerOrdersDomain() method. Each module overrides it to OR in its own domain via Domain.or([super.getServerOrdersDomain(), extraDomain]), so all orders are fetched in a single RPC call instead of three. Task-6284860 Forward-Port-Of: odoo/enterprise#123679 Forward-Port-Of: odoo/enterprise#120001
This fix prevents Belgian payroll processing from crashing when seniority is calculated for multiple employee contract versions at once. It helps payroll teams complete CP200 seniority calculations reliably without manual interruption.
Original PR description
Before this commit, _compute_l10n_be_computed_seniority looped over cp200_versions but still read self.employee_id and self.l10n_be_scale_seniority, so when Odoo batched multiple CP200 versions…
Before this commit, _compute_l10n_be_computed_seniority looped over cp200_versions but still read self.employee_id and self.l10n_be_scale_seniority, so when Odoo batched multiple CP200 versions together, the whole recordset was passed to _get_first_version_date(), crashing with a singleton error.
After this commit, the loop correctly uses version.employee_id and version.l10n_be_scale_seniority instead.
Traceback (important part):
```py
File "/home/odoo/src/enterprise/l10n_be_hr_payroll/models/hr_version.py", line 1508,
in _compute_l10n_be_computed_seniority
company_seniority = relativedelta(fields.Date.today(),
self.employee_id._get_first_version_date()).years
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/odoo/addons/hr/models/hr_employee.py", line 621, in
_get_first_version_date
versions = self._get_last_consecutive_versions(date_limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/odoo/addons/hr/models/hr_employee.py", line 595, in
_get_last_consecutive_versions
self.ensure_one()
File "/home/odoo/src/odoo/odoo/orm/models.py", line 5406, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: hr.employee(30, 1)
```
task-6377630Removing an icon from a Knowledge article header no longer triggers an error. This keeps article editing smooth and prevents users from being interrupted by a traceback during a common customization action.
Original PR description
Steps to reproduce: ------------------------------------ 1. Install the Knowledge module. 2. Open any article. 3. Click the header icon. If no icon is present, add one from the Actions menu. 4. Click…
Steps to reproduce: ------------------------------------ 1. Install the Knowledge module. 2. Open any article. 3. Click the header icon. If no icon is present, add one from the Actions menu. 4. Click the header icon again. 5. Click Remove icon from the emoji picker. Observation: ------------------------------------ A traceback is raised when removing the header icon. ``` TypeError: Cannot set properties of undefined (setting 'scrollTop') ``` Issue: ------------------------------------ The emoji picker component updates its scroll position through a grid reference. After this PR - https://github.com/odoo/odoo/pull/269588, the emoji picker was migrated to Owl 3, which changed the way component references are handled. The header icon removal flow still uses the previous ref access pattern, causing the grid reference to be `undefined` when attempting to update `scrollTop`, resulting in a traceback. Solution: ------------------------------------ Update the syntax for accessing the ref signal.
Instagram posts with images no longer crash the server when Instagram takes too long to fetch or process the image. Instead, the post is marked as failed with a clearer message, helping users understand the issue and try a smaller image.
Original PR description
Making an Instagram containing an image can crash the server with an unhandled `ReadTimeout` instead of marking the post as failed. ### Cause When creating a media container, Odoo passes a URL pointing to its own server and Instagram fetches the image from it server-side before responding. The timeout therefore covers network latency, Instagram's download speed from the Odoo server, and image processing time, making it prone to being exceeded. When it is, `requests` raises a `ReadTimeout` which is unhandled, leading to a raw RPC error instead of a clean `state='failed'`. ### Fix Catch the network errors and mark the post as failed instead of letting them crash the request. Timeouts get a message suggesting a smaller image, since they are usually caused by Instagram fetching and processing a large image server-side. Any other request error falls back to a generic message. opw-6015997 Forward-Port-Of: odoo/enterprise#122406 Forward-Port-Of: odoo/enterprise#112573
The Argentine VAT Book ZIP export no longer fails when invoices involve foreign partners marked as overseas providers. This helps accounting teams complete required tax reporting without manual workarounds or blocked exports.
Original PR description
Steps to reproduce: - Create a partner with: - State: Ireland - Identification Number: Foreign ID 55000004153 - ARCA Responsibility Type: Proveedor del Exterior - Create an invoice for the partner - Accounting > Reporting > Tax report - Select Report: VAT Book (AR), Tax Type: Sales - Click on gear icon > VAT Book (ZIP) Issue: Action will be blocked with error "No VAT configured for partner [58] <partner>" Analysis: Partners with ARCA responsibility type 'Proveedor del Exterior' (code 8) and a ForeignID identification type, causes a UserError when exporting the VAT Book (ZIP). Code 8 (foreign provider) is the purchase-side counterpart of code 9 (foreign customer), which already fell back to the country-level VAT. Extend the existing fallback branch to cover both codes. opw-6316008 Forward-Port-Of: odoo/enterprise#123506
Rental planning now handles company-wide time off more accurately by applying it only to resources on the matching working schedule, unless the time off is truly global. The change also strengthens rental planning website and backend tests, reducing the risk of incorrect availability or booking behavior.
Original PR description
## [FIX] sale_renting_planning: check global leaves working schedule Before this commit: any `resource.calendar.leaves` with no `resource_id` created would prevent all resources from being allocated…
## [FIX] sale_renting_planning: check global leaves working schedule
Before this commit: any `resource.calendar.leaves` with no `resource_id` created would prevent all resources from being allocated during the leave date.
After this commit: any `resource.calendar.leaves` with `no resource_id` would be applied only to resources with the same `calendar_id` as the leave.
if the leave has no `calendar_id` then the leave applies to all `resource.calendars`
if a resource has no `calendar_id` then leaves with no `calendar_id` apply to it as well
## [IMP] {website_}sale_renting_planning: move tests from industry and fix existing ones
This commit moves the tests from [odoo/industry#1980](vscode-file://vscode-app/snap/code/237/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) to their respective standard modules.
It also fixes the logic behind some tests as they weren't testing a `planning.role` with `sync_shift_rental` enabled.
task-6179505
Forward-Port-Of: odoo/enterprise#120983
Forward-Port-Of: odoo/enterprise#116430This fixes an automated test issue that could fail when tax return validation triggered PDF generation at the same time as browser activity. The change avoids running the real PDF rendering step during the test, improving test reliability without changing the user-facing tax return workflow.
Original PR description
Validating a return renders the report to a PDF via wkhtmltopdf inside the `action_validate` request. During the render, the HttpCase test cursor is reserved for wkhtmltopdf, so any browser RPC that overlaps the render window is rejected, resulting in ConnectionLostError. Patching the `_run_wkhtmltopdf` so no real rendering runs during the tour. runbot-243444 Forward-Port-Of: odoo/enterprise#123809 Forward-Port-Of: odoo/enterprise#123720
This update fixes an automated Knowledge app tour that was failing after a property type selector changed from a dropdown button to a select menu. It also makes the tour more reliable by addressing timing issues, helping prevent false test failures during quality checks.
Original PR description
The dropdown for property definition type was replaced with a select menu, leading to an error in the tour as it tried to search for the previous implementation which contained a button. There are also changes to fix the race conditions that exist in the tour which were not evident due to the original issue Related pr: https://github.com/odoo/odoo/pull/234484 runbot-238409 Forward-Port-Of: odoo/enterprise#121958
Appointment picture and list layouts now use the website's configured tax display setting when showing product prices. This prevents customers from seeing tax-excluded prices on websites configured to display tax-included pricing, improving consistency and avoiding confusion.
Original PR description
When the `appointments_template_picture` and `appointments_template_list` templates were added to `website_appointment_account_payment` in 19.0+, the corresponding overrides in `website_appointment_sale` were not added. This caused the picture and list appointment blocks to display prices using `product_lst_price` (always tax-excluded), ignoring the website's tax display setting (`show_line_subtotals_tax_selection`). The cards template already had a proper override using `_get_combination_info()`, which correctly handles everything. Steps to reproduce: 1. Go to Website > Configuration > Settings > enable "Tax Included" 2. Create an appointment type with a product that has taxes 3. Edit website page > add "Appointments" snippet > select "Picture" or "List" layout => price shown is tax-excluded Ticket [link](https://www.odoo.com/odoo/project.task/5799252) opw-5799252 Forward-Port-Of: odoo/enterprise#123448 Forward-Port-Of: odoo/enterprise#106643
Fixed a display issue in Planning where material resource rows could have the wrong height after a field type change. This keeps planning lists easier to read and prevents visual misalignment when resources are shown with avatars.
Original PR description
commit - https://github.com/odoo/enterprise/pull/106700/changes/3f27d96bda7c0b20683adb3fc1d38b5c3279c4a4 When the resource field was converted from m2o to m2m, the corresponding SCSS selector in the planning list was not updated. so the row height was not adjusted correctly for material resources using the m2m avatar widget. Forward-Port-Of: odoo/enterprise#123894
Features or functions removed from Odoo
The VoIP call logging process was simplified by removing leftover scheduling logic that is no longer used. This is an internal cleanup that helps keep the system easier to maintain without changing the user experience.
Original PR description
In [1], we remove the option to schduele a new activity on the log call wizard, so we don't care about `date_deadline` anymore. `_compute_date_deadline` then becomes useless and can be removed. [1]: d037568f8cba0de0aa313fafb4eb24d312d3e707
53 changes
Security fixes and vulnerability patches
The Sign app now blocks unsafe or invalid bulk use of the auto-write feature, reducing the risk of unintended changes to related records. It also improves logging and test coverage so administrators get clearer feedback when automatic updates cannot be safely applied.
Original PR description
Fix scenarios where the auto-write feature could fail or be unsafe: - Prevent unsafe mass updates: Users could enable auto-write in bulk without proper awareness, leading to unintended behavior. Additionally, the field could be manually exposed even when no linked model/field is set. we add safeguards and constraints to prevent enabling it in invalid cases. - Improve test coverage: Update test cases to ensure correct behavior when users have access to partner records but must not be allowed to update sensitive fields (e.g., email) of other users through those records. task-6147410 Forward-Port-Of: odoo/enterprise#115118
New functionality added to Odoo
Turkish companies using TRY can now store official buying and selling exchange rates alongside the average rate. Invoices and bills automatically use the appropriate rate type by default, reducing manual corrections and helping accountants apply the correct rate consistently.
Original PR description
## Description of the issue/feature this PR addresses: Turkish accounting applies different exchange rates depending on whether the company is collecting foreign currency or paying it out. TCMB…
## Description of the issue/feature this PR addresses: Turkish accounting applies different exchange rates depending on whether the company is collecting foreign currency or paying it out. TCMB publishes both buying and selling rates daily but `currency_rate_live` only keeps the average, so accountants currently correct the rate by hand on every invoice and bill. ## Current behavior before PR: The TCMB daily update stores only the averaged rate on `res.currency.rate`. Invoices and bills use that same rate, and users have to adjust it manually per document. ## Desired behavior after PR is merged: - Both the buying and selling rates are stored on `res.currency.rate` next to the average. - Customer invoices and vendor bills get a Rate Type field, defaulting to "buying" for invoices and vendor refunds and to "selling" for bills and customer refunds. The user can override before posting. - The selected rate is written to `invoice_currency_rate`. The lookup uses the rate dated the document's date, or the most recent rate before it when no rate exists for that exact date. - Only TR companies with TRY as base currency are affected. task-5017817 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Enhancements to existing features
Point of Sale screens and related add-ons now include more complete translations for messages that staff may see during daily use. This improves clarity for users working in different languages, especially for dialogs, errors, alerts, and warnings.
Original PR description
pos* = All POS module In this commit: -------------------------------- Add missing translations for user-visible strings across POS modules. - Translated dialogs, errors, alerts, and other UI-visible messages - Updated Python-side UserError, ValidationError, and warning messages Task-5406947 Related PR-https://github.com/odoo/odoo/pull/239972 Forward-Port-Of: odoo/enterprise#122764 Forward-Port-Of: odoo/enterprise#102094
This update adds automated checks to ensure emails linked to newly generated coupons from helpdesk tickets remain traceable. It helps protect the reliability of customer communication history without changing day-to-day user workflows.
Original PR description
Added tests for email traceability when generating a new coupon in a ticket --- task-6341030 Forward-Port-Of: odoo/enterprise#122508
The printer setup screen now only shows the O-Box IP address setting when it is relevant for ePOS printers. It also hides technical service details from the O-Box view, making configuration clearer for business users.
Original PR description
This PR adapts the view to only allow the user to set obox ip if the type of printer used is epos as it doesnt matter otherwise It also hides the services installed on the obox as it's not useful for the user task-6330864 Forward-Port-Of: odoo/enterprise#123271
Point of Sale preparation displays can now be configured to create separate preparation orders for each product. This helps kitchen or prep teams organize work more clearly while keeping combo items grouped correctly with their main product.
Original PR description
In this commit: --- - This commit adds a split-per-product option on preparation displays, loads it in the PoS, and uses it to create separate preparation orders per product while keeping combo children attached to their parent line. related-https://github.com/odoo/odoo/pull/267412 task-6227300
VoIP call durations are now labeled and formatted more consistently in search filters, graphs, and pivot reports. This helps users understand whether duration values are shown in seconds or formatted time, reducing confusion when analyzing call activity.
Original PR description
Previous commits such as [1] worked towards a better uniformisation of the way we store and display duration values in VoIP. This commit hopefully takes care of the remaining issues: - Search view: custom filters (using the Domain component) would show things like "Duration" "greater than" "34", without any unit displayed. For that one, the only real possibility is to modify the label of the python field to "Duration (s)", so filters become clearer. It requires explicitly forcing labels to "Duration" everywhere else though. - Graph view: using widget="voip_duration" as in other views so that duration values are formatted properly. - Pivot view: using widget="voip_duration" as in other views so that duration values are formatted properly. [1]: https://github.com/odoo/enterprise/commit/906b0702daeddcc43782bc4234b18c8d01a29c8e task-6234431
The Grid and Gantt views were updated to work with a newer internal rendering method. This helps keep these views reliable and easier to maintain, with no expected change to day-to-day workflows.
Original PR description
- community: https://github.com/odoo/odoo/pull/273956 This commit follows changes in the `useVirtualGrid` hook regarding reactivity. The users of this hook, namely: the Gantt and Grid views' renderers, have been adapted to use its new API.
This update moves Odoo Enterprise screens and website snippets to the new shared icon system. Users should see more consistent icons across accounting, website, appointments, knowledge, sign, studio, room booking, and related areas, while reducing reliance on older icon assets.
Original PR description
Community PR: odoo/odoo#275347 task-5901783
Field Service shift notes can now include rich formatting such as links, images, and clearer instructions instead of plain text only. Product descriptions are also added automatically, helping technicians see relevant job details directly in their shift instructions.
Original PR description
Currently, the **Note** field only supports plain **text**, limiting the ability to include rich content such as links, images, and formatted instructions. This commit converts the **Note** field to **HTML** and automatically displays the product description in it, making Field Service shift instructions richer and easier for technicians to follow. Task-6285798
The PLM document view has been adjusted to better match the updated document management layout. This removes an unnecessary “Variant” banner and helps documents display and integrate more cleanly for users.
Original PR description
The goal is to remove the “Variant” banner and ensure the XPath follows the new document view structure so it can integrate properly. PR: https://github.com/odoo/odoo/pull/259695 upgrade PR: https://github.com/odoo/upgrade/pull/9990 task-5946575
The subscription portal now shows the “Change Plan” option as a lighter, less prominent button. This better reflects that changing plans is optional and helps avoid nudging customers toward an unintended action.
Original PR description
When changing the plan is allowed from the portal, a "Change Plan" button is shown in the subscription sidebar. It was styled as a primary button, which wrongly suggests to the customer that this is an action they are expected to take. Make it a light button instead. task-6280700
Sales users can now choose a subscription plan directly for optional subscription products in the configurator, instead of always receiving the first available plan. When a plan is already set by a parent product or cart subscription, the selector is locked so optional items stay aligned with the existing subscription.
Original PR description
Previously, optional subscription products in the configurator dialog would default to the first available subscription plan. This behavior was restrictive and did not allow users to choose a different plan. This change introduces an inline plan selector displayed next to the price of each optional subscription product in the configurator dialog: - The selector is editable when no plan is enforced (i.e., no parent subscription product and no existing subscription in the cart). - The selector is locked when a plan is already defined, ensuring optional products inherit the parent subscription plan. task-6130917
Resolved issues and error corrections
This fixes how Belgian payroll calculates eco vouchers so employees receive the correct benefit amounts. It helps payroll teams avoid incorrect payslips and related reporting issues.
Original PR description
Forward-Port-Of: odoo/enterprise#119074
Audit reports exported to PDF now include images that users inserted with the file command. This prevents missing visual evidence or supporting material in generated reports and makes exported documents more complete.
Original PR description
Currently, when a user uses the `/file` command to insert an image into an audit report and exports the report to PDF, the image is omitted from the generated PDF. To improve the support of those blocks, we will pre-process the document and replace the embedded files that correspond to images with standard image elements before PDF generation. This will ensure that images are correctly rendered and displayed within the document's text flow in the exported PDF. Task [link](https://www.odoo.com/odoo/project.task/5115280) task-5115280 Forward-Port-Of: odoo/enterprise#122919 Forward-Port-Of: odoo/enterprise#121673
Marketing Automation now shows the correct reason when a participant is removed from a campaign. If a record still exists but no longer matches the campaign filter, users will see that explanation instead of the misleading “Record deleted” message.
Original PR description
`sync_participants` calls `action_set_unlink` on every participant whose record is no longer in the campaign domain, and `action_set_unlink` writes "Record deleted" on each scheduled trace. The…
`sync_participants` calls `action_set_unlink` on every participant whose record is no longer in the campaign domain, and `action_set_unlink` writes "Record deleted" on each scheduled trace. The removed bucket also contains records that still exist but no longer match the campaign filter, so the cancelled trace dialog shows "Record deleted" even when the record was only filtered out. In `sync_participants`, the to_remove participants are split between those whose record still exists in the database (filtered out by the campaign domain) and those whose record was actually deleted. `action_set_unlink` accepts an optional `trace_message` argument, defaulting to "Record deleted", and the filtered-out batch passes "Record no longer matches campaign filter" so the cancelled trace dialog reflects the real cause. Steps to reproduce: 1. Install Marketing Automation and CRM. 2. Open Marketing Automation, create a campaign on Lead with filter Stage = New. 3. Add a begin activity to the workflow. 4. Open CRM, create a Lead in the New stage. 5. Back in the campaign, click Generate Participants. 6. In the CRM pipeline, drag the Lead from New to Qualified. 7. Back in the campaign, click Generate Participants again. 8. Open the Participants smart button, click the participant for the moved Lead. 9. Click the cancelled activity in the workflow timeline. => The activity dialog shows "Error message: Record deleted" although the Lead still exists. Ticket [link](https://www.odoo.com/odoo/project/49/tasks/6251264) opw-6251264 Forward-Port-Of: odoo/enterprise#118692
This fix prevents delivery tracking from failing when EasyPost returns an empty tracker value. Users can continue working without seeing an error caused by incomplete carrier response data.
Original PR description
The PR https://github.com/odoo/enterprise/pull/111833 handled the specific case when the tracker data is missing from the EasyPost response, however in certain cases `tracker` key exists, but it has a `None` value, which leads to a traceback when trying to access the stock move:
```
File "/home/odoo/src/enterprise/18.0/delivery_easypost/models/easypost_request.py", line 392, in get_tracking_link
public_url = shipment.get('tracker', {}).get('public_url')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
```
This commit provides a fallback to avoid getting the error from the side of the user.
opw-6270242
Forward-Port-Of: odoo/enterprise#119400Hong Kong payroll payslips no longer crash when a user clears the start or end date. This helps payroll users safely edit draft payslips and keeps Average Daily Wage and end-of-year pay calculations from running on incomplete date information.
Original PR description
Currently, an error occurs when a user removes the payslip date. **Steps to Reproduce:** - Install `l10n_hk_hr_payroll` with demo data. - Switch to the `Hong Kong` company. - Go to `Payroll` >…
Currently, an error occurs when a user removes the payslip date. **Steps to Reproduce:** - Install `l10n_hk_hr_payroll` with demo data. - Switch to the `Hong Kong` company. - Go to `Payroll` > `Payslips` > `Payslips`. - Create a `payslip` and remove the `start` or `end` period. **Error 1:** `TypeError: unsupported operand type(s) for +: 'bool' and 'relativedelta'` **Error2:** `AttributeError: 'bool' object has no attribute 'month'` When a user removes the start or end date of a payslip, the system computes the Average Daily Wage. Based on the payslip dates, it finds the previous year's payslips [1]. If the start or end date is not set, it raises an error [2]. For the second error, when computing whether to include EOY pay, it compares the company's EOY pay date with the end date's month. If the end date is not set, accessing its month raises an error [3]. This commit ensures that when retrieving previous-year payslips, if the start or end date is not set, it returns an empty payslip recordset. It also ensures that when computing whether to include EOY pay, if the end date is not set, `include_eoy_pay` is set to `False`. [1]: https://github.com/odoo/enterprise/blob/ec8a009794863090351d91650aff727e6fbeab7e/l10n_hk_hr_payroll/models/hr_payslip.py#L124 [2]- https://github.com/odoo/enterprise/blob/ec8a009794863090351d91650aff727e6fbeab7e/l10n_hk_hr_payroll/models/hr_payslip.py#L209-L215 [3]- https://github.com/odoo/enterprise/blob/ec8a009794863090351d91650aff727e6fbeab7e/l10n_hk_hr_payroll/models/hr_payslip.py#L141 Forward-Port-Of: odoo/enterprise#123135 Forward-Port-Of: odoo/enterprise#120586
Popover content in dark mode now looks more consistent and easier to use. Secondary buttons stand out as clickable actions, and forms inside popovers better match the surrounding popover background.
Original PR description
Before this commit, content like form & secondary button rendered inside popovers had inconsistent styling in dark mode: - secondary buttons did not stand out properly from the popover background, making them look like plain text blocks rather than actionable buttons; - forms rendered inside popovers (such as the multi-create popover) kept their default background, which visually clashed with the popover background. This commit fixes these issues by: - adding dedicated secondary button background colors for popovers, including hover state; - aligning form backgrounds inside popovers with the popover background. task-6249985 Forward-Port-Of: odoo/enterprise#121631
The French Intrastat export wizard now opens warning links filtered to the specific journal entries with missing required Intrastat information. This prevents users from being sent to unrelated accounting entries, making correction of export issues faster and clearer.
Original PR description
Steps to reproduce: 1. Have a French company with intrastat report module installed 2. Create and validate a bill to another EU country, without filling out at least one of the required intrastat fields 3. Go to the intrastat report, and export it as XML DEBWEB2 4. In the export wizard, click on the internal links on the warning messages Issues: 1. In the Intrastat report in French localization, when there are missing values detected in the export, the Export Wizard shows internal links that lead to every journal entries - instead of showing only the relevant entries. The warning banner on the report uses the action action_invalid_code_moves which has a domain to limit what is shown on the view form. However in the method _fill_value_errors there was no domain. opw-6215339 Forward-Port-Of: odoo/enterprise#117997
International Easypost shipments now use the sale order currency on commercial invoices when available, instead of defaulting to the company currency. This helps prevent mismatches in customs documents for orders priced in a different currency.
Original PR description
Issue ----- When shipping internationally with Easypost, the currency on the commercial invoice does not always match the one of the sale order. Steps to reproduce ----- - Install Easypost - Create a…
Issue ----- When shipping internationally with Easypost, the currency on the commercial invoice does not always match the one of the sale order. Steps to reproduce ----- - Install Easypost - Create a new pricelist using a different currency from the company - Create a SO - Some product with a weight & HS code - Customer must be in another country from company (for commercial invoice) - Use the new pricelist - Add easypost delivery - Confirm SO - Validate linked picking > Commercial invoice uses company currency instead of SO's Cause ----- The currency being sent to Easypost is retrieved from the package in https://github.com/odoo/enterprise/blob/4c540f450d4de8b59b871662123f85ed54cca2a9/delivery_easypost/models/easypost_request.py#L146 The package object is actually created by calling the carrier's `_get_packages_from_picking` method https://github.com/odoo/enterprise/blob/4c540f450d4de8b59b871662123f85ed54cca2a9/delivery_easypost/models/easypost_request.py#L266-L270 Solution ----- We could be fixing this in `stock_delivery` by creating the package with the correct currency when calling `_get_packages_from_picking`. The problem with this approach is that this might negatively affect other carrier services, as discussed in https://github.com/odoo/odoo/pull/268224. Instead, we can apply a band-aid fix to take the currency from the picking's sale in the `delivery_easypost` module, which is the only one where the problem was reported. ----- Ticket: opw-6224883 Forward-Port-Of: odoo/enterprise#123083
Expense authorizations from Stripe now correctly recognize merchant category codes that fall within configured ranges, reducing incorrect errors during card use. Declined card expenses also avoid duplicate refusal messages, keeping expense records cleaner and easier to review.
Original PR description
# [FIX] hr_expense_stripe: Fix MCC ranges Context: Since 3e52d875 when receiving an authorization whose MCC fits in a range we would not find it in the search. This is logical yet we return an error before checking properly mcc codes with range included After this commit: This will also check that the authorization MCC exist if we don't directly find the range. We move the "not found" error after that check too The forgotten tests have been added into the overrides opw-6185961 opw-6288399 # [FIX] hr_expense_stripe: Fix double refusal of expenses Context: When an expense is created through a declined stripe authorization, the expense is refused twice, resulting in a duplicated refusal message After this commit: Do not refuse already refused expenses Forward-Port-Of: odoo/enterprise#123093 Forward-Port-Of: odoo/enterprise#121474
Pasting document links into an empty message no longer adds an unnecessary blank line at the start. This keeps shared document messages tidier while still separating links from any existing text.
Original PR description
Before this commit, adding document links always prepended a line break before the generated links. When the composer was empty, this resulted in messages starting with an unnecessary blank line. This commit only inserts a line break when the composer already contains text, avoiding the extra spacing while preserving the separation between existing content and pasted links. task-[5947683](https://www.odoo.com/odoo/project/1519/tasks/5947683) Forward-Port-Of: odoo/enterprise#123201 Forward-Port-Of: odoo/enterprise#120952
The Turkish Central Bank currency rate provider now uses the official selling rate instead of averaging buying and selling rates. This improves accounting accuracy and aligns import valuation with Turkish customs requirements.
Original PR description
## Short fix summary: The TCMB (Central Bank of Turkey) provider computed the exchange rate as an average of the buying and selling rates (`2 / (ForexBuying + ForexSelling)`). This is inaccurate for real accounting flows and does not follow Turkish customs regulation (Customs Law No. 4458, Art. 30), which requires the Central Bank's selling rate for goods import valuation. This now uses the selling rate (`ForexSelling`) only. task-6227500 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/enterprise#122770
The Peru Profit and Loss report now includes Other Operating Income when calculating gross profit. This ensures gross profit, operating profit, pre-tax result, and net profit reflect all relevant operating income for more accurate financial reporting.
Original PR description
**Steps to reproduce:** 1. Install `l10n_pe` and switching to the Peru company. 2. Create and post a journal entry with a line on account 7520000 (Other Operating Income). 3. Open the Profit and Loss report (PE). 4. The amount appears correctly under "Other operating income" (`PE_PNL_A_5`). 5. "Gross profit", "Operating profit" , "Result before taxes" and "Net Profit" do not change when this amount is added or removed. **Issue:** The "Other operating income" line is excluded from the Gross Profit calculation, and consequently from Operating Profit and every downstream total in the PE Profit and Loss report. **Why this happens:** Gross Profit (`PE_PNL_A_4`) balance expression uses the aggregation with formula `PE_PNL_A.balance - PE_PNL_A_3.balance`, which doesn't include `PE_PNL_A_5.balance` as a term opw-6283907 Forward-Port-Of: odoo/enterprise#123063
A small compatibility fix keeps Knowledge file navigation behaving as expected in newer Chrome versions. This prevents browser changes from altering how scroll actions complete, reducing the risk of unexpected behavior for users.
Original PR description
Since Chrome 150, scrolling methods like `scrollIntoView()` return a Promise instead of `undefined`. This commit adds block braces to ensure the action returns `undefined` and keeps the same behavior as before. Reference: - https://chromestatus.com/feature/5082138340491264 - https://chromium.googlesource.com/chromium/src/+/50f3e3d0a9bc02aad8b8161dbdd59046991dd2c7 runbot-941309 Forward-Port-Of: odoo/enterprise#123231 Forward-Port-Of: odoo/enterprise#123031
Blank US checks now print the same payment stub lines as pre-printed checks, making them easier to read and reconcile. The blank check layout was also adjusted so the bottom section fits on a single page instead of spilling onto a second page.
Original PR description
See individual commits. task-6359599 Forward-Port-Of: odoo/enterprise#123144
The shop floor now respects manufacturing settings that block creating new serial numbers for components. This prevents operators from bypassing inventory controls and helps keep production traceability consistent with company configuration.
Original PR description
**Issue**: Even when creation of new Serial Numbers for components is disabled on the Manufacturing Operation Type, it is still possible to create them from the shopfloor application. **Steps to…
**Issue**: Even when creation of new Serial Numbers for components is disabled on the Manufacturing Operation Type, it is still possible to create them from the shopfloor application. **Steps to reproduce**: - Enable "Lots & Serial Numbers", on the global settings - Create two products, one tracked by unique serial number - Go to Inventory > Configuration > Warehouse Management > Operations Types - Select Manufacturing and disable "Create New Lots/Serial Numbers for Components" - Create and confirm a MO using the tracked product as component - Go to shopfloor - Click the "+" button next to the component, then "New" -> No error is raised when creating a serial number **Cause**: The `_check_create` constraint relies on `active_mo_id`: https://github.com/odoo/odoo/blob/494cdcfdf4ec166e0a643ee70a53c12c810d02b4/addons/mrp/models/stock_lot.py#L11-L19 However, the shopfloor does not pass this, in context: https://github.com/odoo/enterprise/blob/54c6252a0e13b11fc297b6828883923c0f89881a/mrp_workorder/static/src/mrp_display/mrp_record_line/stock_move.js#L193-L199 As a result, the check is bypassed. opw-6041241 Forward-Port-Of: odoo/enterprise#111408
Mobile self-ordering now uses the same printing approach as kiosk ordering, so preparation receipts are printed more reliably. The change routes printing through the IoT Box using websockets when mobile devices cannot use the local long-polling connection.
Original PR description
Self ordering mobile now aligns on kiosk avoiding to update last order changes, which would prevent from printing preparation receipts. This is made possible by the IoT Box allowing to print receipts through websockets. We also take the opportunity to update the `iot_http` service in order to allow updating methods available on the service: it allows us adding a new method to disable longpolling for self ordering mobile, which would always fail, to end up using websocket (clients are not on the same network as the IoT Box). Forward-Port-Of: odoo/enterprise#123328 Forward-Port-Of: odoo/enterprise#121013
This fix ensures comments in Knowledge articles are visible immediately when an article is opened or reloaded. It also corrects comment positioning so comment markers no longer overlap or shift unexpectedly, making article discussions easier to follow.
Original PR description
### [FIX] knowledge: load comments on first load There was an issue where comments are not displayed when opening an article containing some. How to reproduce: - create a new article, write some text…
### [FIX] knowledge: load comments on first load There was an issue where comments are not displayed when opening an article containing some. How to reproduce: - create a new article, write some text and add some comments. - reload the page Issue: - comments are not displayed, but they are when switching back and forth to another article Reason: Owl2 -> Owl3 refactoring: commit [1] replaced useRecordObserver by onWillUpdateProps, however the 2 are not equivalent, especially over the timing of the first call (useRecordObserver callback is called during setup). ### [FIX] knowledge: batch vertical dimensions computation once There was an issue where comments were not displayed at their correct position (height/top) in "handler" mode. How to reproduce: - create an article with 3 comments over 5 lines, following a given pattern: - one comment on the first line - one comment on the second line - keep the third line empty - one comment across the 4th and 5th lines - reload the page (issue 1) - click successively on the 3 comments zones (issue 2) Issue: - issue 1: the comments on reload overlap each other while they should not - issue 2: when clicking on the 3rd comment, the 1st and 2nd comments appear offset by an abnormal vertical distance (which should not exist) Reason: Owl2 -> Owl3 refactoring: Commit [1] replaced reactive + batched callback with `useEffect` executing that same batched callback, however `useEffect` is already batched starting from the second call, effectively batching twice, which resulted in the wrong dimensions being computed for knowledge comments in the comments_handler [1]: https://github.com/odoo/enterprise/commit/ab1e2cad9a214a1303e13fdff0e8a62781ef56ee task-6370985 Forward-Port-Of: odoo/enterprise#123339
Grid views now display the user-friendly label for grouped selection values when opening related records from the cell magnifier. This avoids confusing internal codes such as "non_billable" appearing in list titles, making the view easier to understand for users.
Original PR description
When grouping a grid view by a selection field and clicking on the cell magnifier, the list title showed the technical name (e.g. non_billable) instead of the display name (e.g. "Non Billable"). This commit adds a condition specifically for selection fields, ensuring that their display names are used. task-5980035 Forward-Port-Of: odoo/enterprise#122303 Forward-Port-Of: odoo/enterprise#120894
This fix prevents DHL delivery validation errors for customers or warehouses located in regions whose local province codes are only one character long. Odoo now sends DHL the longer official province format where needed, allowing affected shipments to be validated successfully.
Original PR description
Steps:
- Install delivery_dhl_rest
- Create a new customer with barcelona as address
- Create a new Delivery
- Set DHL
- Validate de delivery
- Validation error #/customerDetails/receiverDetails/postalAddress/provinceCode: expected minLength: 2, actual: 1
DHL requires `provinceCode` to be at least 2 characters. Several countries in `res.country.state` data use single-character codes (e.g. ES: B, M, A…; AR: C, B, S…; CN: 京, 沪…). This caused API validation errors when shipping from or to addresses in those regions.
Add `PROVINCE_CODE_MAP`, a dict keyed by `(country_ISO2, state_code)`, mapping each offending code to its ISO 3166-2 form (e.g. ('ES', 'B') -> 'ES-B'). Both `_get_consignee_vals` and `_get_shipper_vals` now look up the map before sending `provinceCode`, falling back to the raw code for countries not in the map.
links: https://developer.dhl.com/api-reference/mydhl-api-dhl-express#shipments
opw-6341745
Forward-Port-Of: odoo/enterprise#122138This fixes a display issue in mass mailing where the snippet selection dialog could appear hidden behind the fullscreen editor when the AI chat was open. Users can now add mailing content blocks normally without the editor controls becoming stuck.
Original PR description
When an AI chatbox is active, all non-error dialog overlays are set to be behind the chatbox through their z-index. This causes an issue where the dialog overlay that adds new snippets to a mailing is placed behind the fullscreen mailing editor, preventing its use and freezing the use of some commands (save & discard). This commit restores the snippet dialog's z-index to its original value. Steps to reproduce: - Create a new mailing - Select a builder-enabled theme (such as Events Promo) - Open a new AI chat by clicking the AI icon in the top right - Open the fullscreen editor - Click on the Headers block category task-6321624 Forward-Port-Of: odoo/enterprise#123377 Forward-Port-Of: odoo/enterprise#123276
Fixed an issue in Accounting where choosing certain actions from the bank reconciliation control panel could fail with an error. Users can now use those actions reliably without being interrupted by a missing service problem.
Original PR description
Fixed an issue where selecting any action from the control panel that would use orm would result in an error because the orm service was undefined. no task id Forward-Port-Of: odoo/enterprise#123480
Fixed an issue where the Balance Sheet could crash after adding a custom Journal Item field in Studio and then filtering by analytic account. This helps accounting users access reports reliably without hitting an error in that configuration.
Original PR description
Steps to reproduce ================== - Activate Analytic Accounting. - Go to Accounting > Accounting > Reconcile. - Open Studio. - Add a new many2many field. - Set Journal Item as the related model. - Go to Reporting > Balance Sheet. - Select an analytic account. => RecursionError: maximum recursion depth exceeded Cause of the issue ================== Calling `self.env['account.move.line'].fields_get()` will cause a recursion error. `account.report::_prepare_lines_for_analytic_groupby()` calls `account.move.line::_where_calc()` which in turns calls _prepare_lines_for_analytic_groupby again Solution ======== It turns out we don't actually need to retrieve the groupable attribute, thus bypassing the error. opw-6129149 Forward-Port-Of: odoo/enterprise#122244 Forward-Port-Of: odoo/enterprise#116251
Payroll processing now evaluates only the warnings that apply to the payslips being computed, instead of checking every possible warning. This reduces unnecessary work and helps payroll calculations run more efficiently without changing the payroll results.
Original PR description
Ensure that we do not evaluate unnecessary warnings by only evaluating the warnings relevant to the payslips being computed; instead of evaluating all of them. task-6371828 Forward-Port-Of: odoo/enterprise#123401
This fix prevents an error when recalculating an Australian payslip after an employee's income stream type has been changed. Payroll teams can now update employee payroll details and recompute payslips without encountering a blocking traceback.
Original PR description
When an employee's Income Stream Type is changed after a payslip has been created, computing the sheet for payslip will raise a traceback. Steps to reproduce the error: - Install…
When an employee's Income Stream Type is changed after a payslip has been created, computing the sheet for payslip will raise a traceback. Steps to reproduce the error: - Install ``l10n_au_hr_payroll_account`` module with demo data - Switch to ``My Australian Company`` company - Create a new payslip for ``Dennis Cactus`` Employee > Save - Go to Employees > Open the ``Dennis Cactus`` employee > In Payroll tab, Income Stream Type: Other specified payments > Save - Go back to payslip > click the compute sheet button Traceback: ```py KeyError: 'OSP' ``` https://github.com/odoo/enterprise/blob/13e64e0cb7f566cbbb46109fe1c218eb7a14eead/l10n_au_hr_payroll/models/hr_payslip.py#L175-L178 The ``l10n_au_income_stream_type`` field on the payslip is a computed field that only depends on ``employee_id``. As a result, changing the employee's Income Stream Type does not trigger a recomputation of the corresponding field on existing payslip. So, when the ``payslip_ytd_totals`` field is computed, it uses the old value of ``l10n_au_income_stream_type`` field at [1], The resulting ``payslip_ytd_totals`` is then used to build the ``totals`` dictionary, and eventually, when the employee's current ``income_stream_type`` is used to access ``totals``, the mismatch key leads to the above traceback. https://github.com/odoo/enterprise/blob/13e64e0cb7f566cbbb46109fe1c218eb7a14eead/l10n_au_hr_payroll_account/models/hr_payslip.py#L75-L88 [1]: https://github.com/odoo/enterprise/blob/13e64e0cb7f566cbbb46109fe1c218eb7a14eead/l10n_au_hr_payroll/models/hr_payslip.py#L269-L272 solution: I added ``l10n_au_income_stream_type`` to ``add_to_compute()`` in ``compute_sheet()``. This ensures that stale values of ``l10n_au_income_stream_type`` on existing payslips are recomputed when the payslip sheet is computed. sentry-7536819310 Forward-Port-Of: odoo/enterprise#123288 Forward-Port-Of: odoo/enterprise#120143
The Swiss payroll time off request form now always shows the start date field. This prevents confusion and ensures employees can consistently enter the required date for any type of time off request.
Original PR description
The time off request view was showing the request_date_from field conditionally, which makes no sense as you would always need to pick a date for a time off no matter which unit the request uses. runbot-241099 Forward-Port-Of: odoo/enterprise#122278
This fix prevents AI markdown-related tests from failing when an optional markdown component is not installed. It keeps automated checks reliable without changing functionality for users.
Original PR description
markdown2 is an optional dependency, so `markdown_format` can fail to process markdown, in which case all the markdown tests fail. Skip the markdown rendering test if there's no markdown rendering to test. Forward-Port-Of: odoo/enterprise#123484 Forward-Port-Of: odoo/enterprise#123002
Downloading a Knowledge article as a PDF no longer includes unwanted scrollbars or an open menu overlay. This makes exported articles look cleaner and more professional, especially for longer content or when the browser is zoomed in.
Original PR description
The Download PDF option of an article prints the page with the browser. On screen, the article body is inside .o_scroll_view_lg, which scrolls when the content is longer than the screen:…
The Download PDF option of an article prints the page with the browser. On screen, the article body is inside .o_scroll_view_lg, which scrolls when the content is longer than the screen: https://github.com/odoo/enterprise/blob/79f8defa04476e1b939dc8bb5449a775137aed62/knowledge/static/src/scss/knowledge_views.scss#L170-L177 The print stylesheet used to force overflow: visible on every div, so this container did not scroll when printing. It also hid every child of the body except the action manager, so the navbar and open dropdowns were left out of the print. Commit https://github.com/odoo/enterprise/commit/69612c80ea0aec5ccf2c2857449da03e61273457 rewrote knowledge_print.scss to scope its rules to the Knowledge view and removed both rules. The scroll container now keeps its fixed height and its scrollbar when printing, so the scrollbar is drawn in the print preview and on every page of the PDF. The dropdown opened to reach Download PDF is printed on top of the article when it overlaps the page area, which happens when the browser is zoomed in. Add overflow: visible to the print rule of knowledge_print.scss that already targets .o_scroll_view and .o_scroll_view_lg with position: static. That rule exists to undo the screen positioning of the scroll containers when printing, so the overflow reset belongs there. Its selector is also more specific than the screen one, so the value applies without !important, like position: static already does. Restore the rule that hides the body children other than the action manager, scoped to the Knowledge view like the rest of the file since the print stylesheet is now loaded on every page. Before: <img width="497" height="703" alt="image" src="https://github.com/user-attachments/assets/44aa3366-3fc8-4382-8aa2-84625fa4b6d8" /> After: <img width="497" height="703" alt="image" src="https://github.com/user-attachments/assets/8b6eb2bc-37a3-4666-b871-0e6149c41fea" /> Steps to reproduce: 1. Open the Knowledge app and create an article 2. Paste enough text in the article to fill more than one PDF page 3. Zoom the browser to 200% 4. Click the three dots in the top right corner, then Download PDF 5. Check the print preview or the saved PDF => A scrollbar is drawn on the right edge of every page and the dropdown menu is printed on top of the article Ticket [link](https://www.odoo.com/odoo/project.task/6279174) opw-6279174 Forward-Port-Of: odoo/enterprise#120249
Fixed an issue where Sendcloud batch deliveries could fail when a transfer was split into multiple packages. The system now uses a safe fallback for the shared delivery reference, allowing labels to be generated without interruption.
Original PR description
Issue ----- When using Sendcloud batch deliveries, users get a traceback if the transfer is split into multiple packages. Steps to reproduce ----- - Setup Sendcloud - Enable batch delivery - Create a…
Issue ----- When using Sendcloud batch deliveries, users get a traceback if the transfer is split into multiple packages. Steps to reproduce ----- - Setup Sendcloud - Enable batch delivery - Create a delivery for 2 units of a product - Delivery method set to sendcloud - Put each unit in a separate package - Validate the delivery > Traceback Cause ----- Bug introduced by #90302 (so only present in 19.3+). When using the batch deliveries option, the packages are sent in a single list. This means that, in `_prepare_parcel`, when we iterate over the packages, `pkg` can be a list https://github.com/odoo/enterprise/blob/2c89c8e5da7dcb83d5a60c9616de4d5d07f0b9ab/delivery_sendcloud/models/sendcloud_service.py#L462 This means that `pkg.name` will fail https://github.com/odoo/enterprise/blob/2c89c8e5da7dcb83d5a60c9616de4d5d07f0b9ab/delivery_sendcloud/models/sendcloud_service.py#L481 Considering that a batch delivery uses the same reference number on all labels, we can pass `None` as a fallback to `_get_unique_order_number_reference` (it is an accepted value) https://github.com/odoo/enterprise/blob/2c89c8e5da7dcb83d5a60c9616de4d5d07f0b9ab/delivery_sendcloud/models/sendcloud_service.py#L388-L393 ----- Ticket: opw-6267928 Forward-Port-Of: odoo/enterprise#120206
Vendor bills imported from Chilean electronic invoice files now use the correct foreign-currency amounts instead of mistakenly applying Chilean peso amounts. This prevents incorrect bill totals when companies work with currencies such as UF.
Original PR description
**STEP TO REPRODUCE** 1. Create a invoice to a chilian company, using another currency (for example UF, don't forget setup up a currency rate). 2. Confirm. 3. Download the xml in the chatter, and import it as a vendor bill. 4. Notice the imported bill amount are wrong (Pesos amount are used, with the currency being UF). opw-6269662 Forward-Port-Of: odoo/enterprise#123179 Forward-Port-Of: odoo/enterprise#119664
This change prevents WhatsApp messages from failing to load when they are linked to business documents that the user cannot access directly. Existing WhatsApp message visibility rules still control who can see messages, helping affected upgrades proceed without disruption.
Original PR description
The `body` field on `whatsapp.message` was defined with `related_sudo=False` with the intent of restricting access to messages from restricted records. However, this was never actually providing any…
The `body` field on `whatsapp.message` was defined with `related_sudo=False` with the intent of restricting access to messages from restricted records. However, this was never actually providing any security value because [`mail.message.fetch()`] was overriding it with `self.sudo()` till `v19.1`, meaning the body was always fetched as superuser regardless:
```py
web_search_read() -> search_fetch()
-> fields.py _compute_related()
-> record[self.related_field.name] # triggers fetch of mail.message.body
-> models.py _fetch_field()
-> mail_message.py fetch()
-> self = self.sudo() # sudo hack overrides related_sudo=False silently
```
In `v19.2`, the `fetch()` sudo hack was intentionally removed (see commit odoo/odoo@4727f12d274a0b2d7c455363d189565bd8fb2e7a) as access rights are now cached and can be checked without a performance penalty. This exposed the broken `related_sudo=False` which now causes an `AccessError` when trying to read the body of a `whatsapp.message` whose linked `mail.message` points to a document the current user cannot access (e.g. `purchase.order`).
Access control on `whatsapp.message` is already correctly enforced at the `ir.rule` level:
- Regular users can only see messages they created (`create_uid = user.id`)
- WA Admins can see all messages
We have upgrade requests failing on this issue: TBG-[2765]
[`mail.message.fetch()`]: https://github.com/odoo/odoo/blob/saas-19.1/addons/mail/models/mail_message.py#L812-L819
[2765]: https://upgrade.odoo.com/odoo/tbg/2765?debug=1
Forward-Port-Of: odoo/enterprise#119867This fix ensures that when warehouse staff scan an existing package followed by a package type, the newly created destination package is correctly linked to the products. It prevents silent package creation errors in barcode delivery flows, improving inventory accuracy and reducing manual correction work.
Original PR description
When scanning a package then a package type, from the point of view of the user nothing happend, and in the backend it will created a new package but it will not link it to the products nor will it…
When scanning a package then a package type, from the point of view of the user nothing happend, and in the backend it will created a new package but it will not link it to the products nor will it show any warning. Steps to reproduce: ------------------- * Install barcode and stock * Enable packages in settings * Open Inventory * Create a product, * Create a Package Type -> barcode PACKTYPE, * Create a Package linked to this package type -> PACK, * Add at least 2 unit of product to this package, * Create a delivery for 2 unit of the product, Open Barcode * Operation > Delivery orders > your delivery * Erase the destination package from the first line * Scan PACK ( don't click on the green line) * Scan PACKTYPE **Actual behavior** create a new package but does not link it to the new products **Expected behavior** create a new package and set it as destination package. Observation: ------------- When scanning the package (PACK), we will go through ```_processPackage``` -> ```async _processPackage``` where in the end the line is unselected: https://github.com/odoo/enterprise/blob/39d8a473fe03038ca0494a6a8165e3eb75bd8492/stock_barcode/static/src/models/barcode_picking_model.js#L2090 When we scan our package type (PACKTYPE), we will go to ``` _processPackage``` -> ```_processPackage```->```_processPackageType``` where we will obtains packagesIds checking that we have a source package: https://github.com/odoo/enterprise/blob/7cd9834d1d918f12dec43844cae6f112309e5772/stock_barcode/static/src/models/barcode_picking_model.js#L2123-L2132 and will send us to ```_putPackInPack```: https://github.com/odoo/enterprise/blob/7cd9834d1d918f12dec43844cae6f112309e5772/stock_barcode/static/src/models/barcode_picking_model.js#L2133-L2136 Where we will avoid the empty packageIds since we checked on the source package and not the destination package: https://github.com/odoo/enterprise/blob/2b887d094c66be7aebd92fbf735b1852f5dde4b5/stock_barcode/static/src/models/barcode_picking_model.js#L2296-L2299 and will call ```action_put_in_pack``` from the packaging model: https://github.com/odoo/enterprise/blob/2b887d094c66be7aebd92fbf735b1852f5dde4b5/stock_barcode/static/src/models/barcode_picking_model.js#L2301-L2306 In ```action_put_in_pack``` will create a new packaging and put it as a the new destination package, but since the ```previous_dest_package``` (saved in db) was itself, he will [erase the link](https://github.com/odoo/odoo/blob/cda011dc8590773f6c3a26f4ae9d5242a3147024/addons/stock/models/stock_package.py#L354-L363) he just made. Which means that in our case, we created a package without linking it to anything. Even if we avoid the function to erase the destination package, since the destination package shown in barcode is the one from move line : https://github.com/odoo/enterprise/blob/d0d0a3cf4a02bf24cf502b533e494fe7ca155eb3/stock_barcode/static/src/components/line.js#L115-L117 It will not show the new package in barcode opw-5449729 Forward-Port-Of: odoo/enterprise#120335 Forward-Port-Of: odoo/enterprise#104876
The website generator now links products to categories using unique identifiers instead of category names. This prevents products from being assigned to the wrong category when different categories share the same name, improving storefront accuracy.
Original PR description
Before we matched categories with products but names but this was less reliable in the case that we had multiple categories with the same name. e.g. Accessories (for men) and Accessories (for women). This new method allows for this and makes the matching more reliable. Forward-Port-Of: odoo/enterprise#122143
Belgian payroll no longer applies a special public holiday eligibility rule for time credit contracts because that rule had no legal basis. This keeps payroll calculations aligned with Belgian legal requirements and reduces the risk of incorrect payslip handling.
Original PR description
The specific code related to the eligibility to public holiday for time credit contracts has no legal base. This commit removes it. task-6370653 Forward-Port-Of: odoo/enterprise#123303
The attendance Gantt view now includes employees who are currently checked in when calculating worked hours. This ensures progress information is accurate even before an employee checks out, helping managers see up-to-date attendance totals.
Original PR description
Isuue =========== If the `check_out` field on an attendance is not set, we don't take it into consideration in the computed worked hours, as we defined domains to retrieve attendances whose `check_out` ends before a certain limit, assuming `check_out` is set for all attendance records, and thus missing the worked hours that are still ongoing. Fix =========== - Update the domain of the employees' progress bar data to account for attendances with a `False` `check_out`. TaskID-6121547
The timesheet grid now marks public holidays, weekends, and approved personal time off according to the employee's own working schedule instead of always using the company default. This helps employees and managers see accurate unavailable days and keeps Timesheets aligned with Time Off behavior.
Original PR description
Steps to Reproduce --- - Create two different working schedules with different public holidays - Assign employees to specific working schedules - Set company default working schedule to a different…
Steps to Reproduce --- - Create two different working schedules with different public holidays - Assign employees to specific working schedules - Set company default working schedule to a different schedule - Login as employee with specific working schedule - Navigate to Timesheets app -> My Timesheets - Observe public holidays and personal time-off displayed in the timesheet grid Issue --- - The timesheet grid displays unavailable dates (public holidays, weekends) from the company's default working schedule instead of the employee's assigned working schedule. - Personal time-off requests are not reflected as unavailable dates in the timesheet grid. Current Behaviour --- - Public holidays shown are always from the company's default working schedule, ignoring employee-specific working schedule assignments. - Employee's approved time-off requests don't appear as unavailable in the timesheet. Expected Behaviour --- - Public holidays should display based on the employee's assigned working schedule, with company schedule as fallback only when no specific schedule is assigned. - Employee's personal time-off requests should appear as unavailable dates. - This should align with Time Off app behavior. Fix --- - Included employee-specific work interval calculation with personal time-off requests. - Added support for contract-based calendar changes and calendar validity periods. - Implemented proper fallback when valid intervals are not found. task-4997080 Forward-Port-Of: odoo/enterprise#123331 Forward-Port-Of: odoo/enterprise#95458
Employees with flexible or missing working schedules will no longer see misleading expected hours in the Timesheet Assistant or systray. The change keeps total logged hours visible while only showing expected hours when a fixed or average schedule makes them meaningful.
Original PR description
**Steps to reproduce:** 1. Create an employee without a fixed working schedule. 2. Configure the employee with variable hours per day, per week, or no working hours at all. 3. Open the Timesheet Assistant or the Timesheet systray. 4. Observe that expected hours are displayed (over 0h 00m or over 24h 00m). **Cause:** Expected working hours were always computed and displayed, even for resources without a fixed schedule. **Fix:** Only compute expected working hours when the employee has a fixed or average schedule, and rely on the computed working hours to control the display of expected hours while keeping total hours always visible. task-6321760 Forward-Port-Of: odoo/enterprise#123068 Forward-Port-Of: odoo/enterprise#122232
Helpdesk closing reminder emails are now sent only for tickets in stages that are actually configured for automatic closure. This prevents customers from receiving misleading warnings for tickets that will not be closed automatically.
Original PR description
**Problem:** When a team restricts automatic closing to specific stages (from_stage_ids), the closing-reminder email is still sent to every inactive ticket in the team, including tickets in stages…
**Problem:** When a team restricts automatic closing to specific stages (from_stage_ids), the closing-reminder email is still sent to every inactive ticket in the team, including tickets in stages that are never auto-closed. **Steps to reproduce:** 1. On a helpdesk team, enable Automatic Closing with a reminder and set "In Stages" (from_stage_ids) to one specific stage 2. Leave a ticket inactive in a different, non-folded stage until it reaches the reminder threshold (auto_close_day - reminder_delay) **Current behavior:** The ticket gets a "your ticket will be closed soon" reminder even though it is not in an auto-close stage and will never be closed. **Expected behavior:** Only tickets that would actually be auto-closed (those in from_stage_ids) should receive the reminder. **Cause of the issue:** The reminder selection filters on auto_close_ticket_reminder and the reminder date only; unlike the auto-close selection, it does not apply the team's from_stage_ids condition. **Fix:** Reuse the same stage condition used to select tickets for closing when selecting tickets for the reminder, so the reminded set stays consistent with the set that will be auto-closed. opw-6291237 Forward-Port-Of: odoo/enterprise#120732
GIFs in Facebook feed comments now show a preview image instead of appearing missing. Users can click the preview to open the animated version on Facebook, making comment content easier to review from Odoo.
Original PR description
Bug === When opening the comments modal of the feed view, the GIF images are not visible. Technical ========= The API does not return the GIF, it only returns the MP4 and the JPG. So we show the fixed image, and when clicking on it, it opens the video on Facebook. Task-6241607 Forward-Port-Of: odoo/enterprise#123181 Forward-Port-Of: odoo/enterprise#118619
The Sign template screen now adapts better when header text becomes longer, such as in translated interfaces. This prevents tag fields from visually overlapping the header, making the page easier to read and use.
Original PR description
Description: - The `.o_sign_template_tags_and_save` container relied on a hardcoded vertical offset (`top: 65px`) while being absolutely positioned. This assumed a fixed control panel height and…
Description: - The `.o_sign_template_tags_and_save` container relied on a hardcoded vertical offset (`top: 65px`) while being absolutely positioned. This assumed a fixed control panel height and caused the tags container to overlap with the header content when the neutralized red header bar expanded to multiple lines due to longer translated strings. - Replaced `top: 65px` with `top: auto` to remove the dependency on a fixed vertical offset and allow the element to be positioned according to its computed static position. - Reduced the height of `.o_field_widget.o_field_many2many_tags` from `50px` to `35px` to better fit the available space within the header area and prevent visual overlap between tag rows and surrounding elements. - This change preserves the existing positioning strategy while making the layout resilient to variable header heights caused by translations and other content-dependent UI variations. 19 - https://github.com/odoo/enterprise/blob/3db8db2eac3dff1485c6a1c977c80e573bfe6cab/sign/static/src/scss/sign_backend.scss#L486 Before fix: <img width="1874" height="443" alt="image" src="https://github.com/user-attachments/assets/196feab3-3460-4ed9-9f57-d7744e9c4e4b" /> After fix: <img width="1319" height="412" alt="image" src="https://github.com/user-attachments/assets/93ae5bcd-f0f0-4999-9cf7-f83b82d689ac" /> Forward-Port-Of: odoo/enterprise#120590 Forward-Port-Of: odoo/enterprise#118937
Code cleanup and technical improvements
Spreadsheet-related screens were updated to use the newer Owl 3 framework patterns. This is an internal modernization that helps keep spreadsheet features maintainable and compatible without changing expected user workflows.
Original PR description
*=spreadsheet_sale_management As part of the Owl 3 migration, replace onWillUpdateProps hook with the appropriate Owl 3 alternatives.
26 changes
Security fixes and vulnerability patches
Database API keys are now better protected from accidental or unauthorized exposure. The key is no longer sent to the user interface and is masked when entered, reducing the risk of sensitive credentials being leaked.
Original PR description
The aim of this commit is to harden the security of the `database_api_key` field. Before this commit: The field could be retrieved through the orm and could be leaked if the access rights were bypassed. A streamer pasting the key in the field could also leak his api key by mistake. After this commit: The only way to access the field is through direct SQL access. The api key isn't shown anymore in the UI: - The UI doesn't receive the key from the backend: it receives dummy **** - The field in the form view display dots instead of any char to prevent leaking the key by mistake. Task-id: None
New functionality added to Odoo
This change adds a migration bridge to help Belgian point-of-sale deployments move from the older fiscal device module to the newer version. It reduces migration friction for businesses that must keep POS operations compliant while upgrading.
Original PR description
This commit adds a bridge module between the two belgian FDM modules to ease the migration from v1 to v2.
Odoo now supports WhatsApp's new business-scoped user IDs, so businesses can keep matching and contacting customers even when WhatsApp no longer shares a phone number. It also stores WhatsApp's standardized phone identifier to improve contact matching across different phone number formats, and avoids crashes when WhatsApp error messages are processed.
Original PR description
Add support for whatsapp business-scoped user ids as outline in the [documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids) for their introduction this June. This effectively adds a table mapping BSUID to contacts to enable contacting users who contact the business directly, as the business will now not necessarily be provided with their number. Additionally the “whatsapp id”, i.e. the canonical form of the phone number as stored in whatsapp, is stored to help better match contacts regardless of formatting details in odoo and whatsapp. task-5476552 Forward-Port-Of: odoo/enterprise#117782
Enhancements to existing features
The bank reconciliation widget now loads less data and shifts some heavy calculations away from the browser. This should make opening reconciliation screens faster on very large databases, improving day-to-day accounting workflows.
Original PR description
When opening the bank rec widget on huge DB's, it takes
a lot of time to load everything.
This commit aims to improve the loading performances by
removing some JS fields:
1 - reconciled_lines_ids: We only use the first element of
this recordset in JS, so we add a new computed field
to only send 1 record to the JS
2 - hasAttachment: replace the long JS computation of
`get hasAttachment` with a python computed field.
3 - Replace matched_credit_ids and matched_debit_ids
with exchange_diff_partial_ids.
Linked:https://github.com/odoo/odoo/pull/269119
task-6275945Loss amounts in the Lithuanian Profit and Loss report are now displayed in red instead of grey with only a negative sign. This makes negative results more visible and helps users review financial performance more quickly.
Original PR description
Before this commit: - The losses in the Lithuanian P&L report are shown in grey with only a -ve sign After this commit: - The losses in the P&L report are shown in red now. Related PR: https://github.com/odoo/odoo/pull/239388 Task-5269617
Attachment deletion is now much faster for companies using the Chilean electronic invoicing and stock localization features. The change improves database lookup performance, reducing delays when deleting many attachments in large databases.
Original PR description
## The problem Deleting attachments checks foreign key triggers. Lookups in `account_move` and `stock_picking` tables for `ir_attachment` related fields coming from `l10n_cl_edi` overrides were slow due to missing indexes. ## The solution Added needed indexes to optimize triggers' lookups. ## Benchmark Time benchmark (deleting attachments from a customer database with 224K account moves and 204K stock pickings): |# of rows|Time (Before)|Time (After)| |----------|--------------|-------------| 100 | 29s | 16ms 1000 | 285s | 300ms OPW-6331845 Forward-Port-Of: odoo/enterprise#123350 Forward-Port-Of: odoo/enterprise#123252
Resolved issues and error corrections
Financial reports now handle “load more” results correctly when grouped by account and partner. This prevents duplicate Unknown entries, missing partners, and an error when opening the trial balance, helping users trust report results and avoid interruptions.
Original PR description
**Commit 1** [FIX] account_reports: sorting of lines on load more with unknown record Steps to reproduce: - Create a db with demo data - Open the balance sheet's configuration menu. - Set a groupby key of the "Bank and Cash" line to "account_id,partner_id" - Set a load_more limit to 2 for the report - Open the report and unfold the "Bank and Cash line", and load more multiple times. -> The "Unknown" line is displayed several times, while "LightsUp" partner is missing. This is because we removed one record from the sorting if the "load more" line was still necessary. However, it only needs to be the case if no "Unknown" partner is used since this one will always be the last. **Commit 2** [FIX] account_reports: fix load more on trial balance Steps to reproduce: - Set a load more limit on the trial balance and define a grouping key "account_id, partner_id" - Open the report -> Traceback, because the load more line has empty lists in the "columns" key.
Point of Sale receipts will no longer include the extra terminal receipt text from Worldline payments. This keeps customer receipts shorter, clearer, and avoids duplicate or unnecessary payment information.
Original PR description
This PR removes the terminal receipt from Worldline we are currently inserting in the Point Of Sale receipt We don't adapt the driver code to get the receipt as we cannot change C method prototypes task-6373975
Czech VAT control statements now place invoices from partners with non-domestic VAT numbers in section A5 instead of A4. This helps keep tax reports compliant by ensuring A4 is reserved for domestic VAT transactions only.
Original PR description
With l10n_cz company: - Create an invoice for a partner with a foreign vat (EU) with an amount greater than 10000 CZ and a 21% tax. In the vat control statement of the tax report, the move is classified under A4. But the section A4 should only contain move with domestic vat opw-6268506
Canadian check printing now hides check numbers on the attached stubs when pre-numbered checks are used. This keeps the printed check and its stubs consistent and avoids duplicate or confusing numbering on payment documents.
Original PR description
The check itself respected the check_manual_sequencing field, but the stubs did not. Hide the numbers on stubs as well, exactly like on US checks. task-6343701 Forward-Port-Of: odoo/enterprise#122565
The Colombian DIAN invoicing module now correctly hides the Reset to Draft option for credit notes that have already been accepted by DIAN. This helps prevent users from accidentally changing official documents after they have been validated by the tax authority.
Original PR description
Issue: The reset button would still appear for credit notes that were already accepted by the DIAN. Steps to reproduce: Create a credit note, confirm it and send it to DIAN. You will be able to select Reset to Draft even though it shouldn't be possible to convert to draft after accepted by DIAN. Cause: The function to compute if the reset button would appear or not was only taking into account Invoices. Solution: Added credit notes, to the function that verifies if the reset button should appear. opw-6219265
The Trial Balance report no longer breaks when a very low load limit is set. Accounts are now shown immediately instead of being split behind a “Load More” button, making the report more reliable and easier to review.
Original PR description
Steps to reproduce: - Install Accounting module - Accounting > Reporting > Trial Balance > Set `Load More Limit` to `1` - Try to open `Trial Balance` report Traceback: `KeyError: 'column_group_key'` The Trial Balance report was applying the report load more limit when expanding lines grouped by `account_id`. This caused accounts to be loaded in multiple batches and displayed a "Load more" button even though the number of accounts is typically small enough to be loaded at once. Align the behavior with the General Ledger report and with later versions by setting the load-more limit for this grouping to `False`. This ensures that all accounts are displayed immediately when the Trial Balance report is loaded, eliminating the need for a "Load More" button. opw-6255738
The AI website builder now shows the correct preview image for the AI live chat snippet when the related live chat app is not installed. This helps users understand what the snippet will look like before adding or enabling it.
Original PR description
Commit [1] removed the snippet preview since it mismatched the actual result, but it was overlooked that there's another use of this preview. This commit adds an updated image back. [1]: df05441e469157890253b5550b5f8735723b28fb task-6379796
Swedish bank account details are now read using the dedicated clearing number field instead of inferring it from the account number. This improves ISO 20022 payment file accuracy and reduces failures when processing Swedish payments through international banking systems.
Original PR description
Purpose: This fix addresses an issue where Swedish BBAN account numbers were incorrectly parsed due to the bank code being derived from the account number itself. The parsing logic has been updated to use the clearing_number field, ensuring accurate extraction of the bank code and account number. Changes: Utilized the clearing_number field to obtain the bank code. Sanitized and validated both the account number and clearing number. Implemented Luhn checksum validation for 5-digit clearing numbers when required. Ensured consistent return of sanitized bank_code, sanitized account_number, and checksum type. Impact: This update ensures compliance with ISO 20022 standards for Swedish BBAN account parsing, enhancing interoperability with international payment systems.
This change ensures subscription commission tests correctly clear currency rate data across companies when demo data is present. It prevents false test failures and helps keep commission calculations reliably validated.
Original PR description
Steps to reproduce: 1- Initialize a new database with demo data 2- Run the test `test_sub_commission_no_currency_rate` Issue: `AssertionError: 0 != 10 : Regular invoice, 10 percent of 100` Why this happens: The test used to delete all rows in the res_currency_rate table for the current company only. When we load the database with demo data, the query in `_get_subscription_currency_rates` would find entries for the other companies and wouldn't resort to the default. Later when joining, it would find no rates for the current company and the test fails. runbot-243440
Colombian POS sales that include combo products can now be reported correctly to DIAN. The update prevents zero-priced combo parent lines from being sent in the electronic document, avoiding rejected transactions when customers pay by card.
Original PR description
Issue: When ordering through POS combo items won't be accepted by DIAN. Steps to reproduce: Set company to Colombia and activate the DIAN module. Simulate a sell of an combo item with POS. Pay with card. Error will ensue. Cause: The XML sent to DIAN is not accepted because one of the items has 0 price (the combo item). Solution: Not sending lines that are combo items. opw-6232599
Fixed an issue where expanding a Knowledge sidebar article could show only favorited child articles while hiding other children. Users can now reliably see the full article hierarchy without needing to reload the page.
Original PR description
The sidebar always loads the user's favorite articles along with the visible ones, so a favorited article is shown as a root of the favorite tree. When that favorite is also a child of a folded…
The sidebar always loads the user's favorite articles along with the visible ones, so a favorited article is shown as a root of the favorite tree. When that favorite is also a child of a folded article, it gets added to its parent's child_ids in the main tree, even though the parent's other children were not fetched. A folded article only gets its favorited children back from get_sidebar_articles, not its whole child set. When the parent is then unfolded, unfold() only read the children from the database when child_ids was empty. The favorited child already filled child_ids, so the call was skipped and the remaining children stayed hidden until the next reload. unfold() now uses a new children_loaded flag instead of the length of child_ids to decide whether to fetch the children. The flag is set once an article's whole child set is loaded: in loadChildren(), and in loadArticles() for the articles that were unfolded, since those come back with all their children. loadChildren() also rebuilds child_ids from the search result so a favorite already loaded is not added twice. The fix lives in the sidebar component because the partial child_ids only exists on the frontend, get_sidebar_articles already returns the right records. Steps to reproduce: 1. Open the Knowledge app 2. Create an article with two child articles 3. Add one of the two children to your favorites with the star icon 4. Open another article that is not under that parent 5. Fold the parent article in the sidebar, then refresh the page 6. Expand the parent article => only the favorited child is shown under the parent, the other child is missing Ticket [link](https://www.odoo.com/odoo/project.task/6186466) opw-6186466 Forward-Port-Of: odoo/enterprise#118804
Barcode delivery operations now reuse the existing consigned stock owner when scanning eligible products, including products without lot tracking. This prevents duplicate stock records and keeps inventory quantities aligned with the actual owned stock being shipped.
Original PR description
### Steps to reproduce: - In the settings enable: "Storage Locations" and "Consignment" - Create a storable product and put 1 unit in stock with a set owner - Go to the barcode app > Operations >…
### Steps to reproduce: - In the settings enable: "Storage Locations" and "Consignment" - Create a storable product and put 1 unit in stock with a set owner - Go to the barcode app > Operations > Delivery Orders > New - Scan your product and validate #### > The owner was not set on the stock move line so that a new quant was created and updated in stock rather than using the available unit. ### Cause of the issue: The mechanism of prefilling an owner or a package in the barcode app is currently gate-kept behind the existence of a lot name: https://github.com/odoo/enterprise/blob/0be4f71de3420fb9b72fd4e70d48c6cbbbc0ecb4/stock_barcode/static/src/models/barcode_model.js#L1382-L1407 However, the option also make sense for none tracked products. ### Note: Performing the flow form the backend and adding quantity will generate the move line by setting the owner if possible since the quantity of a move is set via the back end, move lines are generated by looking at the existing quant data's: https://github.com/odoo/odoo/blob/5d61c03b33c9a915684dd59656f8be7612956dd1/addons/stock/models/stock_move.py#L2364 https://github.com/odoo/odoo/blob/5d61c03b33c9a915684dd59656f8be7612956dd1/addons/stock/models/stock_move.py#L2328-L2330 Setting the same owner on the new move line as on the quant we are going to reserve: https://github.com/odoo/odoo/blob/5d61c03b33c9a915684dd59656f8be7612956dd1/addons/stock/models/stock_move.py#L2337 https://github.com/odoo/odoo/blob/5d61c03b33c9a915684dd59656f8be7612956dd1/addons/stock/models/stock_move.py#L1715 Additional subtelties appearing when prefilling for non tracked product: 1. Currently the available quantity is not taken into account to determine if the the value provided to the prefilled is actually relevant, in particular if there is a quant with an available quantity of 0, it will be used as a valid value to prefill and it will parasit the prefill that could be done by other quants. 2. The location source used to determine the quants taken into account is not set on the first scan since the scan is performed without any existing line: https://github.com/odoo/enterprise/blob/4f0d25f9fe4ca8ff1b0ecd7900899a2a246ba888/stock_barcode/static/src/models/barcode_model.js#L1387 > This was not problematic with respect to tracked product since the product needs to be scanned prior to the lot, hence there is always a current line when the the lot is scanned. opw-6050657 Forward-Port-Of: odoo/enterprise#122998 Forward-Port-Of: odoo/enterprise#115021
This fix ensures status messages in French reporting are displayed properly when documents are accepted or rejected. It prevents error details from appearing incorrectly, helping users understand report outcomes without confusion.
Original PR description
A mismatch between error titles and status logs was introduced in 18.0. Markup wasn't added to the status logs, leading to a type mismatch (Markup + str) when displaying errors for 'accepted' or 'rejected' statuses. As a result, the logs were not interpreted as HTML. This commit ensures Markup is applied to each element to guarantee coherence and proper rendering. backport of 5113752 task-6053842 Forward-Port-Of: odoo/enterprise#123250
Fixed an issue in the Barcode app where scanning both individual items and packaged quantities could save the wrong total after leaving and reopening a delivery. This prevents undercounted quantities during validation and helps keep inventory and delivery records accurate.
Original PR description
### Steps to reproduce * Enable the Units of Measure setting and create a packaging UoM for a product (e.g. "Pack of 10"). * Create a customer delivery for that product and confirm it. * Open the…
### Steps to reproduce * Enable the Units of Measure setting and create a packaging UoM for a product (e.g. "Pack of 10"). * Create a customer delivery for that product and confirm it. * Open the picking in the Barcode app, scan the product unit barcode once, then scan the packaging barcode once. * Exit the barcode app via the back arrow (without validating). * Re-open the picking and validate it. **Expected**: `move.quantity` reads `11` (1 unit + 1 pack of 10). **Observed**: `move.quantity` reads `2` (the raw count of move lines), while the detailed move lines still show 1 unit and 1 pack of 10. ### Cause On exit, `BarcodePickingModel._onExit` aggregates `qty_done` and `reserved_uom_qty` across the move lines and forwards the totals to `stock.move.post_barcode_process` -> `_truncate_overreserved_moves`. The aggregation ignored each line's own UoM, so a line in a packaging UoM (e.g. pack of 10) was counted as `1` instead of being converted to the move's UoM. `_truncate_overreserved_moves` then saw the real `move.quantity` (11, correctly computed from the move lines) as exceeding what the user supposedly did (2) and forcibly wrote `move.quantity = 2`. The accompanying `_set_quantity` runs with `unreserve_unpicked_only=True` and therefore skips the picked lines, leaving the move lines intact but `move.quantity` stuck at the wrong value through the validation that follows. ### Fix Convert each line's quantity to the move's UoM (using the cached `uom.factor`) before aggregating in `_onExit`. `product_uom` is added to `stock.move._get_fields_stock_barcode` so the move's UoM is available in the client-side cache. ### Why 19.0 only In 18.0 and earlier, scanning a packaging multiplied the scanned quantity in the **product's** UoM (`_retrievePackagingData` returned `quantity = barcodeData.packaging.qty` with `uom = product.uom_id`), so the resulting move lines were all in the same UoM and the raw aggregation was correct. In 19.0 the packaging rework made the scan create a move line in the **packaging's** UoM with `quantity = 1`, which exposed the missing conversion in `_onExit`. ### Test `test_scan_packaging_on_picking_with_mixed_uom` is extended with a 5th receipt that scans 1 unit + 1 pack of 6, exits via `button.o_exit`, re-opens the picking and validates. Without this fix the assertion `quantity == 7.0` fails (truncated to 2).
This fix ensures database API keys are accessed correctly during database management and synchronization workflows. It helps prevent access issues in user management and sync operations, improving reliability for teams managing databases.
Belgian POS Blackbox receipts and menus now show the required FDM and POS software version details again. This helps businesses keep receipts and point-of-sale identification aligned with compliance expectations and improves visibility during audits or checks.
Original PR description
- store the FDM software version on the order and print both `fdmSwVersion` and `posSwVersion` on the receipt - show POS ID and POS software version in the navbar burger menu - assert the restored fields in the blackbox oracle tour Task-id: 5864870
The Argentine VAT Book export now handles foreign partners marked as overseas providers without blocking the ZIP download. This avoids manual workarounds and lets businesses correctly generate VAT reports for transactions involving foreign suppliers or partners.
Original PR description
Steps to reproduce: - Create a partner with: - State: Ireland - Identification Number: Foreign ID 55000004153 - ARCA Responsibility Type: Proveedor del Exterior - Create an invoice for the partner - Accounting > Reporting > Tax report - Select Report: VAT Book (AR), Tax Type: Sales - Click on gear icon > VAT Book (ZIP) Issue: Action will be blocked with error "No VAT configured for partner [58] <partner>" Analysis: Partners with ARCA responsibility type 'Proveedor del Exterior' (code 8) and a ForeignID identification type, causes a UserError when exporting the VAT Book (ZIP). Code 8 (foreign provider) is the purchase-side counterpart of code 9 (foreign customer), which already fell back to the country-level VAT. Extend the existing fallback branch to cover both codes. opw-6316008 Forward-Port-Of: odoo/enterprise#123506
The appointment booking page now keeps month navigation aligned with the first actually bookable slot. This prevents customers from seeing empty months when availability exists, improving booking reliability for appointment-based businesses.
Original PR description
On the website booking page, moving to a later month can show no available times even though the weekly schedule clearly has some. ### Steps to reproduce - Install Appointments. - Create a recurring…
On the website booking page, moving to a later month can show no available times even though the weekly schedule clearly has some. ### Steps to reproduce - Install Appointments. - Create a recurring appointment type available on a single weekday (say Monday), with a user or resource assigned and a date range spanning a few months. - Set `Allow bookings at least` (the minimum booking delay) so that the current time plus the delay falls after this month's last Monday. Close to the end of a month, a day or two of delay is enough. - Open the booking page: the first month shown is next month, because the delay skipped this month's last slot. - Click the arrow to move forward one more month. => the reached month shows no slots, even though it has Monday availability. ### Cause The calendar computes availability one month at a time. It builds a list of months, and the browser refers to each month by its position in that list (0, 1, 2, ...). Clicking the next arrow sends that position back to the server. The server turns the position into a real month by adding it to a start month, which it computes as `now` plus the minimum booking delay. But the list shown to the visitor does not start there: it starts at the month of the first slot that can actually be booked. These two are usually the same, so the position lines up. They stop matching when the delay moves the earliest bookable time past the last availability day of the current month. In the steps above, `now` plus the delay lands after the month's last Monday, so the first bookable slot is a Monday in the next month. The visitor's list then starts one month later than the server assumes, every position points one month too early, and the server computes availability for a month the visitor is not looking at. The reached month comes back empty. ### Fix Count the visitor's month position from the same first bookable slot the list starts from, instead of from `now` plus the delay. The navigation offset is passed to the slot computation and resolved against that slot, so the filled month always matches the month the visitor sees. opw-6353569
This fixes an issue where the Sign app could fail when loading signing fields in debug mode. The change makes the page ignore hidden template comments so users and testers can continue working with documents without interruption.
Original PR description
Use lastElementChild when retrieving the sign item from the target element. In debug mode, inherited templates may introduce HTML comments into the DOM. Since lastChild return a comment node, accessing classList on the returned node raises an error. Using lastElementChild ensures that the last HTML element is always retrieved, regardless of comment nodes in the DOM.
The POS now loads only the Kenyan e-invoicing classification records that are actually used by available products. This avoids pulling unnecessary data into POS sessions, helping improve loading efficiency without changing cashier workflows.
Original PR description
Before `product.unspsc.code` and `l10n_ke_edi_oscu.code` records were loaded without domain, which could lead to loading all records of these models in POS, which is not necessary. This commit adds a domain to the loading of these records, so that only the records that are actually used in the products are loaded in POS.