Wednesday, May 14, 2025
14 changes · 18.0
Enhancements to existing features
This change adjusts how email recipients are handled in Odoo's Mail app. It is likely intended to improve how outgoing messages and composed emails manage the “To” field, helping messages reach the right recipients more reliably.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
Customers can now complete Stripe payments even when the option to save payment methods is turned off. This fixes a checkout issue and ensures both saved-payment and non-saved-payment Stripe setups can receive payments reliably.
Original PR description
177d4cb fixed an issue that prevented to use of a non-tokenizable payment method to pay for a subscription if the "Allow saving payment method" setting was enabled on a Stripe provider. This fix introduced a bug that prevented customers from paying if the "Allow saving payment method" setting was disabled on a Stripe provider. After this commit, both behaviors should allow receiving payment with Stripe. opw-4787854
The Time Off dashboard now includes the expiration dates for carried-over leave when calculating an employee’s expiring balance. This helps employees see when unused days will expire and plan their time off before losing them.
Original PR description
In the Time Off app dashboard, employees can view whether some of their unused time off days are set to expire and the exact expiration date. At the accrual plan level, a validity period can be…
In the Time Off app dashboard, employees can view whether some of their unused time off days are set to expire and the exact expiration date. At the accrual plan level, a validity period can be defined for carried-over days, after which they expire. However, the expiration date of these carried-over days hasn't been considered when calculating the employee's expiring balance. Steps to reproduce: 1. Create a new accrual plan. 2. Define a new accrual plan level. 3. Configure the level to accrue 10 days annually. 4. Set the carryover validity to 2 months. 5. Keep all other settings as default. 6. Create a new allocation. 7. Apply the previously defined accrual plan. 8. Set the start date to 01/01/20xx (where xx is the previous year). 9. Confirm the employee's balance is now 10 days. 10. Navigate to the dashboard. 11. Set the date to 01/01/(20xx + 2), corresponding to the carryover date. 12. Notice that no expiration date is displayed on the dashboard. 13. The expiration date should be displayed as 01/03/(20xx + 2). This update addresses the issue by incorporating the expiration dates of carried-over days into the calculation. task-4207987
Viewing completed activities could fail when an activity was still linked to a record that had already been deleted. The fix skips those missing records so users can continue reviewing activities without hitting an error.
Original PR description
How to reproduce: – Revert fix: odoo/odoo#206361 which fix archived activities not being deleted when their related record are – Install project and log as admin – In Settings -> Activity Type ->…
How to reproduce: – Revert fix: odoo/odoo#206361 which fix archived activities not being deleted when their related record are – Install project and log as admin – In Settings -> Activity Type -> To-Do -> check “Keep Done” – In Project -> Office Design -> Energy Certificate -> Schedule an activity To-Do for “Marc Demo” (it must be another user) – Mark it as done – Delete the task (cog menu) – Click on the clock on the top right – And then on “View all activities” – Remove all filters – Add filter “Done” You get a “Missing Record” error: “Record does not exist or has been deleted.” The error happens on allowed_ids[res_model] = set(records._filtered_access(operation)._ids) because records contains the deleted task. Note that this line is bypassed for activities of the current user, that’s why it is important to assign the test activity to another user. We solve the problem by restraining the records to the existing one (using .exists on the recordset). Note that in v17, there is no problem because _filter_access_rules (with check_access_right) was used instead of _filtered_access. We've considered to clean the records as they were detected in the mail_activity _search method but that was not straightforward as it is usually executed with a readonly transaction (web_search_read) and there is any way already an upgrade script which suppress all orphan activities: https://github.com/odoo/upgrade/pull/6952. Technical note: the test doesn't reproduce exactly the problem (no exception) but we check that the records are filtered as explained above. Task-4730338
Freelancers using the Bizkaia tax agency can now cancel TicketBAI invoices without generating an invalid XML error. The cancellation format has been aligned with Bizkaia's official requirements, reducing failed cancellation submissions.
Original PR description
The XML format used to cancel invoices for freelancers in Bizkaia was invalid. Steps to reproduce: - Configure a freelance company with Bizkaia as tax agency - Create and send an invoice to TicketBAI - Cancel it using "TicketBAI Cancel" - You get an error: "Invalid content was found starting with element 'Renta'. One of '(AnulacionTicketBai)' is expected." This fix follows the official Bizkaia documentation: https://www.batuz.eus/fitxategiak/batuz/lroe/Batuz_LROE_Especificaciones_Env%C3%ADo_Masivo_V1_0_7.pdf (see page 30) and the example provided here: https://www.batuz.eus/fitxategiak/batuz/LROE/ejemplos/Ejemplo_Anulacion_1_LROE_PF_140_IngresosConFacturaConSG_79732487C.xml opw-4634677
This fix prevents duplicate records from being created when the same paid point of sale order is synced more than once. It helps avoid duplicate invoices, stock transfers, and related operational cleanup for businesses using the point of sale app.
Original PR description
Before this commit, if a paid order request was sent twice, duplicate records such as pickings or invoices could be created in the system. opw-4788967 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Users can now edit sections and notes on accounting-related documents until the parent document is cancelled, locked, or posted. This prevents notes added during normal workflow steps, such as after confirming a purchase order, from becoming unexpectedly locked after focus is lost.
Original PR description
Description of the issue this commit addresses: In the move form view, the sections and notes are made readonly too soon. For example in a purchase order form, when the PO is confirmed, it is still…
Description of the issue this commit addresses: In the move form view, the sections and notes are made readonly too soon. For example in a purchase order form, when the PO is confirmed, it is still possible to add notes and sections but not to edit them so they are locked once the focus is lost. As it is intended to be able to add notes at such point so it should be possible to edit them too. --- Desired behavior after this commit is merged: This commit makes it so that the readonly attribute of the sections and notes depends on the state of the move of the form. Currently, we want the readonly only if the parent is cancelled (cancel), locked (done) or posted (posted). --- Note on the fix: The addition of the sectionAndNoteIsReadonly() getter is the part of the fix that really allows the user to edit text that was previously uneditable. On the other hand, the override of the isCellReadonly method is only here to make sure no readonly classes like text-muted are applied if the cell is still editable. --- opw-4744367 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo now prevents invited attendees from syncing older Outlook calendar events that they do not own before the organizer syncs them. This keeps meeting ownership correct and helps avoid duplicate or organizer-less events in Odoo and Outlook.
Original PR description
Before this commit, when an user A is invited by an event of user B and none of these users are synchronized with Outlook, when the synchronization of user A starts or resumes, the event will be…
Before this commit, when an user A is invited by an event of user B and none of these users are synchronized with Outlook, when the synchronization of user A starts or resumes, the event will be synchronized without any organizer in user A's Outlook calendar due to a limitation of Microsoft of not accepting creating events for other users (user B) directly. In the meanwhile, in Odoo, the event ownership will be transferred from user B to user A, which is also wrong. After this commit, when user A starts or resumes its synchronization with Outlook, previous Odoo events which user A is attendee but not organizer won't be synchronized until the organizer synchronizes its calendar. This will keep the ownership of the event intact in Odoo, and when the organizer synchronizes its calendar with Outlook, it will be correctly synchronized in Outlook as well. This approach will also reduce the possibility of duplicated events in Odoo side (and by transitivity, in Outlook side). task-4269432
This fixes an issue where invited calendar events could be sent to Google with the attendee incorrectly set as the organizer. Events now wait for the actual organizer to synchronize, keeping ownership consistent between Odoo and Google Calendar.
Original PR description
Before this commit, when an user A is invited by an event of user B and none of these users are synchronized with Google, when the synchronization of user A starts or resumes, the event will be synchronized with the user A as organizer in Google. In the meanwhile, in Odoo, the event ownership will be shown as user B, mismatching the organizer field between the two ends. This is problematic because the ownership of the event will be forever wrong in Google. After this commit, when user A starts or resumes its synchronization with Outlook, previous Odoo events which user A is attendee but not organizer won't be synchronized until the organizer synchronizes its calendar. This will keep the ownership of the event intact in Odoo, and when the organizer synchronizes its calendar with Google, it will be correctly synchronized in Google as well. task-4269432
This fix stops the Point of Sale system from creating duplicate stock picking records when an existing order is paid. It ensures already-processed orders are not processed again, helping keep inventory movements and order records accurate.
Original PR description
Before this commit: =================== Two pickings were being created for existing POS orders when the order was paid. After this commit: =================== If an order is not in the draft state, there's no need to call _process_order, which was causing multiple pickings to be created for a single POS order. A check has been added to verify the state of the existing order before processing. opw-4790841 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where imported records could have user-provided property values replaced by default values during creation. Defaults are now only applied when no value was provided, helping preserve imported business data as intended.
Original PR description
When importing records that include values for "properties" fields, the current logic in `_add_missing_default_values` overwrites those values with defaults, even if the user explicitly provided them. After this commit we'll only use defaults if the value is not already set. opw-4714901
Fixed an issue where activating multiple empty analytic plans could cause the Profit and Loss report columns to display incorrectly. This helps accounting users rely on accurate report layouts when using analytic accounting configurations.
Original PR description
Steps to reproduce - Install Accounting - Go to settings and activate Analytic Accounting - Go to Configuration and create two analytic plans without any analytic accounts - Go to the Profit and Loss report - Activate the two new analytic plans -> the report is messed up in its columns Cause of the issue: When two analytic plans without any analytic account are present, they have the exact same forced_options, leading to the same column_group_key. task-4675686
Uploaded documents on projects and tasks now inherit the related customer, so they appear from the customer's Documents smart button as expected. This helps users find customer-related project files consistently without manual correction.
Original PR description
### Steps to reproduce: - Navigate to any task that has a customer assigned to it - Upload a document using the attachment button in the chatter - Click on the Documents smart button in the task's form - Notice the document is shown there - Naviagte to the customer's profile and click on Documents smart button - Notice the document is not shown ### Cause: This is happening because when creating a document for the attachment we uploaded we don't assign a partner for it as we don't have an override for _get_document_partner neither in project.project nor project.task https://github.com/odoo/enterprise/blob/9b133b2cd03a726d330c87a1227903fc925b0ed5/documents/models/documents_mixin.py#L37 ### Fix: We override _get_document_partner in project.project and project.task to get the partner related to this project/task opw-4718592
WhatsApp message templates now use the web address tied to the specific customer record's company instead of a generic template value. This prevents customers from receiving links for the wrong company in multi-company setups, reducing confusion and failed interactions.
Original PR description
Previously, the WhatsApp template used the `base_url` from the template variable instead of deriving it from the specific `record`, leading to incorrect URLs in a multi-company environment. This caused issues where messages contained URLs from the wrong company, potentially confusing customers and breaking expected functionality. This fix ensures that the base URL is correctly retrieved from the `record`, aligning it with the active company context and preventing cross-company URL mismatches.