Thursday, September 5, 2024
10 changes · master
Enhancements to existing features
This update simplifies an internal testing helper used to compare expected business data in automated tests. It makes test failures easier for developers to understand and fixes several test expectations, improving maintainability without changing how users work in Odoo.
Original PR description
Current version seems way over-complicated for what it does, and furthermore shows less information than useful: - The diff it shows lacks context which makes it harder to understand than necessary. - It assumes new records only happen at the end, so is unable to properly show middle-endian insertions. Instead of trying to do all the things by hand, produce a consistent serialization and leave the entire diffing to Python.
This change adjusts how mail discussion threads are fetched so the operation is treated as read-only. This can help reduce unintended side effects while users open or refresh conversations, improving reliability in the messaging experience.
The web entry page now relies on Odoo’s standard user-access handling instead of custom login checks. This makes sign-in redirects and session validation more consistent while removing an unhelpful session-expired log message.
Original PR description
The code removed in this controller is basically what does the `auth='user'`: - it redirects to login page when not logged in - it handles the redirection automatically - it checks the validity of…
The code removed in this controller is basically what does the `auth='user'`: - it redirects to login page when not logged in - it handles the redirection automatically - it checks the validity of the session The change in `http.__call__` regarding the `_logger.info` of `SessionExpiredException` is because of a very small change of behavior during the test `test_session10_explicit_session`, where, in addition to the warning logger "called ignoring args", a second logger was in the capture: `odoo.http: Session expired` This is because for the case `if request.session.uid` in the `web_client` controller, before it was redirecting to the login page without raising the SessionExpired Exception, while the `auth="user" raises first the `SessionExpiredException` which then leads to the redirect to the `/web/login` page. The decision is taken to simply not log in such a case, because the log produced was simply, e.g.: `2024-01-01 08:00:01,000 26 INFO 67784250-master-all odoo.http: Session expired` which doesn't hold any pertinent information: We do not know which session is expired, for who, for what reason. Just that "a" session expired.
This update adds test coverage to document that the main web entry point must remain accessible before normal authentication is available. It helps protect a critical startup and login path from future regressions, with no direct change expected for everyday 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
Category buttons in the point-of-sale screen now have adjusted spacing so they are easier to see and use. On mobile, category names are centered and images are hidden to improve readability on smaller screens.
Original PR description
Change padding on category buttons to make it more visible. In mobile mode the category image is not displayed and the name is centered. taskId: 4161300
The online store cart no longer shows an empty placeholder image for products without a defined image. This makes the cart look cleaner and avoids distracting shoppers with missing-image placeholders.
Original PR description
Prior this commit: An empty placeholder image was displayed in the cart when no image was defined for a product. Post this commit: The empty placeholder image is no longer displayed in the cart when no image is defined for a product. task-3983679 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update deprecates an older internal shortcut for accessing Odoo's registry and moves usage to the direct registry interface. It reduces core package complexity with minimal expected impact on day-to-day users, while helping developers maintain and upgrade the platform more cleanly.
Original PR description
You can use directly `odoo.modules.registry.Registry` when needed and cases where you need to do it are rare. At the same time, this allows to remove a function from the `odoo` package. Related PRs: Enterprise: odoo/enterprise#69269 Upgrade: odoo/upgrade-util#132 Task [link](https://www.odoo.com/odoo/project/1364/tasks/4069446) task-4069446 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update replaces an older internal way of accessing Odoo's registry with the recommended approach. It helps simplify the core platform and keeps affected business features aligned with future Odoo maintenance, with no expected day-to-day user impact.
Original PR description
You can use directly odoo.modules.registry.Registry when needed and cases where you need to do it are rare. At the same time, this allows to remove a function from the odoo package. Related PRs: Community: odoo/odoo#178784 Upgrade: odoo/upgrade-util#132 task-4069446
The appointments website snippet now sends visitors to the main appointments page when they click “See all.” This makes navigation clearer and helps customers find available appointments more reliably.
Original PR description
The goal of this PR is to adapt the "See all" link that should redirect to `/appointment` in the appointments snippet. PR (COM): https://github.com/odoo/odoo/pull/135509 Design themes: https://github.com/odoo/design-themes/pull/897 task-3922762
Knowledge invitation emails have been slightly updated to include who created the shared item and when it was created. This gives recipients more context before opening the invitation, with only a minor technical impact from retrieving the creator name.
Original PR description
After this PR: Invite email layout is slightly modified, which now shows the creator's name and date it got created on. This PR also modifies a performance test, by increasing the query count, because of the addition of new `create_uid` field in email layout for accessing `display_name`. Related Community PR: https://github.com/odoo/odoo/pull/168211 Task-3911767