Tuesday, November 12, 2024
9 changes · master
Enhancements to existing features
This update simplifies how Odoo resets its internal working environment, reducing unnecessary rebuilding after resets. It should improve reliability and maintainability for background operations, accounting setup, website updates, and user configuration flows without changing day-to-day user behavior.
Original PR description
Make the resetting simpler; most attributes are handled as lazy properties. This allows resetting an environment to be as simple as resetting all lazy properties. We fix also all useless recreations of environments after resets. The `reset()` function that should be used is the one of the transaction. task-4201974 odoo/design-themes#1008 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The mail bot now uses the platform's built-in translation escaping instead of a separate escaping step. This keeps translated messages safe and consistent while simplifying maintenance, with no expected change for everyday users.
Original PR description
Since escaping html in translations is now built in, this commit replaces the `html_escape` use cases with `env._`.
The product filter previously called "Available in POS" is now named "Point of Sale". This makes the wording consistent with related sales and purchasing areas, reducing confusion for users navigating product filters.
Original PR description
In this commit we rename the `Available in POS` filter to `Point of Sale` in order to ensure consistency between modules. ( `sale` and `purchase` follow the same convention ) Task 4290385 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The employee profile now hides the Time Off button when the employee does not belong to the company currently selected by the user. This helps prevent confusion and reduces the chance of navigating to time-off information for the wrong company context.
Original PR description
"Time Off" smart button in the employee view should be disabled/invisible when the employee is not part of the currently selected company. task-4312901
This update improves how Odoo interprets yes/no field filters behind the scenes, especially when values are blank. It makes searches and reporting conditions more consistent while simplifying the generated database queries.
Original PR description
Description of the issue/feature this PR addresses:
The comparison of booleans in SQL is now expressed as (expression IS TRUE) or (expression IS NOT TRUE).
This way we handle null values correctly and reference the field only once. We can even reduce to TRUE or FALSE if we have an `in`condition.
Current behavior before PR:
`('active', '=', False)` becomes `"active" = %s OR "active" IS NULL`
`('active', 'in', [True, False])` becomes `"active" IN %s OR "active" IS NULL`
Desired behavior after PR is merged:
`('active', '=', False)` becomes `"active" IS NOT TRUE`
`('active', 'in', [True, False])` becomes `TRUE`
task-4067946
odoo/enterprise#73554
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis change enables automated code quality checks for the mobile web add-ons. It helps maintain consistency and reduces the risk of future development issues, with no direct change expected for end users.
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
The Sign app's automated tests were updated to use the newer Hoot testing framework instead of older QUnit-based helpers. This improves maintainability and helps ensure future Sign changes can be validated more reliably, with no direct change expected for end users.
Original PR description
Purpose of this PR is to convert remove QUnit tests which rely on `mail/test_utils` to hoot. task-3818666
The Timesheet Grid module was updated to remove an outdated internal setup component. This cleanup helps keep the module easier to maintain without changing the day-to-day user experience.
Original PR description
This commit aims to remove legacy `setupManger`. Part of task-3818666
Boolean checks in database queries are now written in a more explicit and consistent way. This is an internal improvement that helps ensure reporting and payment-related features interpret yes/no values reliably across affected areas.
Original PR description
The comparison of booleans in SQL is now expressed as (expression IS TRUE) or (expression IS NOT TRUE). task-4067946 odoo/odoo#174829