Daily updates from Odoo
Thursday, July 2, 2026
2 changes
Code cleanup and technical improvements
This change removes outdated internal configuration from several interface components. It does not change how users work in the product, but it helps keep the codebase simpler and easier to maintain.
Original PR description
These components never read props.slots (only t-call-slot/t-set-slot, which don't require it to be declared), so the schema entry was dead.
This update simplifies the testing environment by reducing unnecessary reliance on the test environment variable. The changes prepare for a future update that will replace the current environment setup with a more streamlined testing approach. This refactoring aims to improve test execution speed and maintainability.
Original PR description
\* account_reports,ai,documents,documents_spreadsheet,
spreadsheet_edition,timer,web_studio,web_studio_ai_fields
This commit reduces the explicit usage of env in tests like:
- `patchWithCleanup(env.services.*, *)`: converted to `mockService("*", *)`.
- `env.services.*`: converted to `getService("*")`.
- `const env = await makeMockEnv();`: `makeMockEnv` is still called but
the result is not used anymore. If needed we can still use `getMockEnv`.
This change is to prepare the removal of env in the future.
`makeMockEnv` will be replaced by a function `makeTestApp`.