Tuesday, April 15, 2025
9 changes · master
Enhancements to existing features
This change removes redundant dependency declarations that are already covered by Odoo’s core requirements and makes dependency checks more consistent. It reduces maintenance overhead and lowers the risk of modules failing because required libraries are imported inconsistently.
Original PR description
These dependencies are in the base `requirements.txt`.
This update adds a temporary cache for repeated record-existence checks, reducing unnecessary database work during the same transaction. It should improve performance in areas that repeatedly validate related records, especially in property handling and reference lookups, without changing user-facing behavior.
Original PR description
We want create a proper `Properties.convert_to_record()` method, but the only obstacle is for batching and cached the `exists()` call for relational property field. Then we add a transactional cache for `exists()`. This solution is clearly not perfect but it is quite simple. This cache is only populated by the `exists()` method. It can also possible to potulate it during _fetch_query (internal method of search/read/...) but it is not necessary and may cost too much memory/postprocess for very small increase of the hit rate. Note that this cache may also help when the usage of `ref` is called inside a loop. 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
The test suite now verifies at the end of each transactional test that pending data can actually be saved to the database. This helps catch issues earlier in automated testing, reducing the risk of failures appearing later in real usage or deployment.
Original PR description
Flush at the end of each tests to check that the data can be written to the database. Without this, we may have a test running fine and crash when executing in reality when we try to flush/commit. odoo/enterprise#78423 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update includes multi-company access information in the initial web session data. It helps the Documents app start with one fewer server request, improving load efficiency for users in multi-company setups.
Original PR description
Since the Document app use the `base.group_multi_company` at startup[1], it's made sense to the session_info bundle to avoid an RPC at webclient startup. [1]: https://github.com/odoo/enterprise/blob/b78e36b16a6b4b157c227d8b222b544f94cb9016/documents/static/src/core/document_service.js#L81 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
Users can now reveal or hide their password while signing up or updating account details. This small usability improvement helps reduce typing mistakes and makes account setup smoother.
Original PR description
added an eye icon to toggle password visibility on the signup and my account pages. 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
Restaurant point-of-sale demo data now includes a new combo menu product with an image. This makes it easier for teams to try and demonstrate multiple-choice combo options without setting up sample products manually.
Original PR description
Add new product combo in demo data to quickly test the multiple selection combo choices introduced here (https://github.com/odoo/odoo/pull/203668). task-id: 4708317 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update improves internal test coverage around sales, accounting, products, point of sale, repairs, manufacturing, and localization flows after recent changes to default administrator access. It makes test permissions more targeted, helping prevent false failures and keeping future product updates more reliable without changing day-to-day user behavior.
Original PR description
Administrators groups have been recently removed from the default groups when creating a database, they're only added when demo data is installed. Tests have been adapted quickly, by adding all those groups in the core `AccountTestInvoicingCommon`, because he doesn't rely on the administrator to run the test setups (when all other tests do), but on a newly made test user `accountman`. This PR removes two of those generic groups from the `AccountTestInvoicingCommon` default groups, moving them to more specific descendants of the class, and fixes the broken tests as well. When possible to easily integrate the test class in the existing tests architecture (with the right parent), this approach is used, otherwise a sudo or an override of `default_groups` is added. task-4677987
The Knowledge app was adjusted to stay compatible with a related platform data-format change. This keeps article comments working correctly after the underlying update, with no expected change to the user experience.
Original PR description
https://github.com/odoo/odoo/pull/202400
The Documents app now includes multi-company access information in the initial session data. This avoids an extra startup request, helping the app load a little faster for users in multi-company environments.
Original PR description
Since the Document app use the `base.group_multi_company` at startup[1], it's made sense to the session_info bundle to avoid an RPC at webclient startup. [1]: https://github.com/odoo/enterprise/blob/b78e36b16a6b4b157c227d8b222b544f94cb9016/documents/static/src/core/document_service.js#L81