Wednesday, February 26, 2025
9 changes · saas-18.2
Resolved issues and error corrections
This fix updates an internal performance test after an accounting report was added to the menu. It helps keep automated checks accurate so future changes are judged against the right expectations, with no direct impact on day-to-day users.
Original PR description
The following PR: https://github.com/odoo/enterprise/pull/77895 introduced a new report in the menu: `account_reports.menu_action_account_report_tree` without incrementing the menu test query counter. Extra SQL query log: ``` odoo.sql_db: [0.308 ms] query: SELECT model, res_id FROM ir_model_data WHERE module='account_reports' AND name='menu_action_account_report_tree' ``` rb-134659
The website event sales test setup now assigns a country so tax creation works reliably when demo data is not installed. This prevents automated test crashes and helps keep release validation stable.
Original PR description
Taxes require a country_id when created and infer it from the company, however without demo data, the company has no country_id leading to a crash during the setUpClass. We now fix a country at the start of the test to make sure we have one. Runbot Error 114358 Runbot Error 114359
This fixes portal test tours so they no longer depend on demo customer address data being present. It helps ensure automated checks pass reliably in installations that do not include sample data, reducing false build failures.
Original PR description
Some portal tours relied on partner values being set, however state_id was missing when the base was installed without demo data. Runbot Error 134882 Runbot Error 134883
This change makes automated checks for resizing schedule items in the Gantt view more dependable. It reduces false test failures, helping teams validate future updates with greater confidence without changing user-facing behavior.
Original PR description
This commit fixes the pill resize tests by waiting for the right badge text to appear before releasing the handles. The tests previously failed intermittently because the badge text was incorrect, as it didn't have enough time to process all drag action events before being checked. This should be a more surefire way to get rid of the indeterminism than in https://github.com/odoo/enterprise/pull/79847/commits/91aa56d5adc635a3c7ae92d9533024b0ee87fcfa
Gantt view badges now show date and time details that match the current zoom level, avoiding unnecessary hour details when they are not useful. Selection badges also show the correct dates instead of being shifted, helping users plan and review schedules more accurately.
Original PR description
First commit adjusts the Gantt time display badges to omit hours when the precision is too low for them to be relevant. Second commit fixes an issue where badges displayed incorrect dates when selecting cells. The dates were shifted one sub-column to the left.
This fix makes purchase order updates work correctly when linked to approvals. It also reduces unnecessary database work, helping the process run more efficiently without changing user workflows.
Original PR description
The `write` method for `purchase.order` was not correctly overridden in `approvals_purchase`. This commit fixes it so as to avoid unnecessary db queries (i.e. `search` calls) and incorrect reassignment of the values of the `self` recordset. Also does a small improvement of using a defaultdict instead of manually recreating its logic for a normal dict. follow-up to: odoo/enterprise#71294 odoo/enterprise#79559 backport of https://github.com/odoo/enterprise/pull/79953
The Swiss payroll accounting demo data was updated to use the current phone field after an older mobile field was removed. This prevents demo data loading errors and keeps test environments running smoothly.
Original PR description
A recent change (https://github.com/odoo/enterprise/pull/75203) removed the field `mobile` on the `res.partner` model, however the demo data in `l10n_ch_hr_payroll_account` was not fully adapted, leading to error and failure to load demo data. This commit changes the field `mobile` to `phone` to avoid the issue. Runbot Error: https://runbot.odoo.com/odoo/action-573/114995
The signature sharing test was updated so it no longer turns off an already-shared request before checking clipboard behavior. This keeps automated checks aligned with the intended user flow and preserves the restriction on the download button.
Original PR description
Before this commit, the `shared_sign_request_tour` tour was failing in the clipboard check because the step just before clicked the toggle making it hidden, which was not necessary as it is already shared. After the commit, we no longer click the toggle to share the request as it already opens as shared. Additionally, we propagate the download button restriction from odoo/enterprise#80070. runbot-116600
This update prevents the Loans app from failing during direct installation when expected setup data is missing. It improves reliability for teams enabling the module and reduces disruption during deployment or testing.