Thursday, September 17, 2026
12 changes · 18.0
Resolved issues and error corrections
This pull request fixes several issues in Odoo's automated web and mail testing tools, making test results clearer and reducing false failures or hidden errors. These changes help developers catch problems earlier and maintain product quality, with little direct impact on end users.
Original PR description
- https://github.com/odoo/enterprise/pull/131914 Various Hoot/web tests fixes. See commit messages for details. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Invoices that have already been sent through PEPPOL can no longer have the PEPPOL sending option selected again. This avoids accidental duplicate sends and makes the reason clear to users in the invoice sending wizard.
Original PR description
If the invoice is already sent through PEPPOL, the checkbox for sending the invoice should then be readonly and unchecked. Currently is correctly unchecked but not readonly. We fix it by copying what French localization (`l10n_fr_pdp`) does already, giving a reason for disabling. <img width="1359" height="948" alt="immagine" src="https://github.com/user-attachments/assets/6f91ab34-8989-487e-8cd9-96dafee7bcb5" /> . Pad: https://pad.odoo.com/p/accountingv20 pad-accountingv20
This fix removes unnecessary blank space in Select/Create dialogs when browsing long lists or mobile kanban views. It keeps the dialog layout compact and easier to use while preserving the intended minimum display size.
Original PR description
Before this commit, the minimum height of 20rem was applied directly to the content node. Since scrolling is handled by the view (more specifically, the renderer), this could create an awkward empty space below the scrollbar when a list contained many fields. The same issue also affected kanban views on mobile, where additional unnecessary space could appear. After this commit, the minimum height is applied directly to the view renderer instead. This prevents extra space from being introduced while preserving the intended minimum height. The rule is also not applied on mobile, where the Select/Create dialog already occupies the full screen. task-4062852
Installing the Ecuador stock localization now avoids a setup error when the stock accounting app is not installed. This prevents installation failures in lean deployments while simply skipping accounting-specific stock valuation setup until the relevant app is available.
Original PR description
Steps to reproduce the bug:
- On a database without stock_account installed:
- Install l10n_ec_stock alone (single-module install, no auto-install cascade)
Problem:
Installing l10n_ec_stock raised:
ValueError: Invalid field 'valuation_in_account_id' on model 'stock.location'
The post_init_hook calls _l10n_ec_setup_location_accounts(), which writes valuation_in_account_id and valuation_out_account_id on stock.location (addons/l10n_ec_stock/models/account_chart_template.py). These fields are defined by stock_account, not by stock or l10n_ec, which are the module's only dependencies. When stock_account happens not to be installed, the fields don't exist on the model and the write() fails.
Solution:
Guard _l10n_ec_setup_location_accounts() with a check that valuation_in_account_id exists on stock.location before writing to it, skipping the valuation account setup when stock_account isn't installed.
runbot-237915
Forward-Port-Of: odoo/odoo#287151This update fixes internal test validation so invalid selection values are detected instead of being silently accepted. It improves reliability of automated checks across affected apps, helping prevent hidden issues from reaching users.
Original PR description
- https://github.com/odoo/odoo/pull/256814 See commit messages for details. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update ensures the Turkish Nilvera e-dispatch module installs reliably by declaring a required inventory accounting component directly. It prevents setup failures in certain test or installation scenarios without changing day-to-day business workflows.
Original PR description
View 'l10n_tr_nilvera_edispatch.view_picking_form_inherit_l10n_tr_nilvera_edispatch' fails to install in single-module test skip auto_install because it depends on field stock.picking:country_code. That field is provided by module 'stock_account' which is not in the dependency path of the module. In normal install the module 'stock_account' is present through auto_install when both 'account' and 'stock' are installed. Adding the direct dependency on 'stock_account' is not a problem because the view crashes without it. 'stock_account' is available through the chain below. [l10n_tr_nilvera_edispatch] ──[depends]──> [stock] ──⚡[AUTOLOAD]──> [stock_account] [l10n_tr_nilvera_edispatch] ──[depends]──> [l10n_tr_nilvera] ──[depends]──> [l10n_tr] ──[depends]──> [account] ──⚡[AUTOLOAD]──> [stock_account] REF Runbot: https://runbot.odoo.com/odoo/error/946186 Forward-Port-Of: odoo/odoo#285633
The HR employee work contact calculation was adjusted to use the correct access rights, preventing unexpected behavior when employee contact information is computed. This helps ensure HR records remain reliable for users with different permission levels.
Original PR description
Ensure correct access to avoid unexpected behavior opw-6560194 Forward-Port-Of: odoo/odoo#288063
This fixes a small internal error in the export process where a broken message format caused the wrong type of failure. The change helps Odoo report the intended validation error, making export-related issues easier to diagnose without changing user-facing features.
Original PR description
The format was broken. `'{}:{}' % it` → `TypeError` instead of `AssertionError`.
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#288610Accounting predictions now use the most recent relevant entries instead of older records. This helps make suggested accounting values more accurate and aligned with recent activity.
Original PR description
This commit: https://github.com/odoo/enterprise/pull/38830/changes#diff-6f6931855e0903ff0d3f2b39bd5703ceaef9bdf9a516862b83f38d2d5b21a232 change the order of the predictive queries, removing the sorting order by date. Based on the current docstring: https://github.com/odoo/enterprise/blob/66682012145e5116ebec0183102bc5e930c2c343/account_accountant/models/account_move.py#L676 this is not correct, as we expect to retrieve the previous 100 entries, rather than the oldest ones. Correcting the query order ensures that the most recent entries are considered for predictive purposes. opw-6558929 Forward-Port-Of: odoo/enterprise#131731
This fixes wording in the French PDP configuration so it accurately reflects that companies may choose both whether to enable e-reporting and whether to send through the public portal. It helps users make the right configuration choice by avoiding an overly narrow description.
Original PR description
When we removed the pilot phase setting from the view, we changed that setting to only mean Enable e-reporting. But that's a mistake. In fact people are also choosing not to send to the PPF, so the previous sentence was still right. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#288518
This fix makes saved filters more tolerant of accidental leading or trailing spaces in stored text values. It helps prevent errors when Odoo reads those filters, improving reliability without changing user workflows.
Original PR description
task-6578010 Forward-Port-Of: odoo/odoo#288528
Documentation and clarification updates
This update records that Victor Hachard has signed Odoo's Contributor License Agreement. It is an administrative legal change that enables future contributions to be accepted under the project's contribution rules, with no impact on product features or users.
Original PR description
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Signing against 17.0 so the signature is forward-ported to all newer versions, as advised in #139403. Forward-Port-Of: odoo/odoo#287231