Tuesday, September 24, 2024
13 changes · master
Enhancements to existing features
Odoo now better recognizes searches that cannot return any results, including certain hierarchy-based filters, and skips unnecessary database work. This can improve performance in affected searches while also correcting how some unusual filter values are interpreted.
Original PR description
### [IMP] core: `is_false` takes in account hierarchical domain leaf.
Since a16c44210ad143af5328a11ee198176f08ab664c, the `is_false` method
(expression.py) detects 'falsy' domains, i.e. domains that will never
match any record in the database. We used it in the `_search` to avoid
the SQL query if possible.
In the `is_false` method, we consider a leaf to be false if the right
value is 'falsy' and the operator is 'in'. We can extend this logic to
the hierarchical operator. In fact, the leaf
`[('<field>', 'child_of/parent_of', []/False)]` won't match any record.
This can save some SQL queries.Dashboard editing now uses a clearer pencil icon placed next to the dashboard name. The icon only appears for dashboard administrators in debug mode, keeping the regular interface uncluttered while making admin editing easier to find.
Original PR description
## Description: - Replaced the existing edit icon with a pencil icon positioned next to the dashboard name. - The pencil icon is visible only to users with dashboard admin rights, and only when debug mode is enabled. Task: [4172828](https://www.odoo.com/odoo/project/2328/tasks/4172828) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Empty mail conversations now show a clearer, more welcoming visual state, with the no-message notice centered in the chatter. This improves the experience for users when opening new or inactive conversations by making the screen feel less blank and easier to understand.
Original PR description
Also center "no message in conversation" in chatter. Before / After  
Kanban views now avoid carrying duplicate user context information during rendering, using the standard context data instead. This is an internal cleanup that keeps legacy kanban views compatible while reducing redundancy for future maintenance.
Original PR description
Keys of the user_context are available in the context, so having the user_context is redundant. There was only 2 kanban archs using the user_context, both in sign, and the associated enterprise PR adapts them to use the context instead. Note that we keep it in the rendering context of legacy kanban views (those still using `kanban-box`) for the sake of retro compatibility. Part of task~3992107 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
This update moves several mobile web interface tests to Odoo's newer testing framework. It helps ensure key mobile interactions such as date inputs, dialogs, swipe actions, and the control panel remain reliable as the product evolves.
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 mail module's sample discussion channel data was simplified by removing unnecessary formatting wrappers. This keeps demo data easier to maintain without changing how business users interact with the system.
Original PR description
followup of https://github.com/odoo/odoo/pull/181012 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Portal document pages will no longer automatically scroll down to the message composer when opened. This keeps customers and portal users focused on the document content first, making the page experience less disruptive.
Original PR description
Composer autofocus causes the page to scroll to the composer. While this behavior is desirable in backend chatter or project sharing (the composer is at the top of the page), it's a bit annoying in the portal, which automatically scrolls to the bottom of the page. This commit disables autofocus in that case.
This change removes empty styling files and unnecessary asset references from several website building blocks. It simplifies maintenance without changing how website pages look or behave for users.
Original PR description
Introduced recently with [1], [2] and [3]. It is useless: if a snippet just stops having CSS... just stop having CSS. Disable the previous CSS as always and the `_disable_unused_snippets_assets` will work too provided that you do increase the `data-vcss` of the snippet. [1]: https://github.com/odoo/odoo/commit/224ec4e62fd2822b679331187110a04a0187ec81 [2]: https://github.com/odoo/odoo/commit/1b361326f8f6c7e27c197ee2ca9496f556f9915c [3]: https://github.com/odoo/odoo/commit/501e284e6ab52d304d50e6055a7718cba1b70256
Kanban card footers now use a slightly smaller default text size, matching what many Odoo screens already applied manually. This creates a more consistent visual layout across apps and reduces duplicate view customization without changing business workflows.
Original PR description
Before this commit, the default font size for kanban footers was 1rem. A lot of kanban views overruled it by using classname `fs-6`. This commit changes the default font-size to .875rem (which is `fs-6`) which allows to remove the classname from a lot of archs. 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 lock date wizard has been adjusted so exception settings are visually and textually separated from the hard lock date. This reduces confusion for accounting users and makes the labels easier to translate consistently.
Original PR description
- Putting the exception section after the hard lock date field gave the impression the exception was also applicable to the hard lock date, while it isn't. We also add a little indent to it, so that it can be better distinguished from the other settings - Rephrase the exception section a little bit and put more words into the label of selection fields to simplify translation.
Spreadsheet pivot tables now show day-level date headers in a clearer format, such as 01 Jan 2021 instead of locale-dependent numeric dates. This makes reports easier to read and compare across users and regions.
Original PR description
Improve the format of headers with the day granularity in the pivot, from the locale's date format (e.g. `1/1/2021`) to `dd mmm yyyy` (e.g. `01 Jan 2021`). Task: [3613511](https://www.odoo.com/web#id=3613511&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
Aged Receivable and Aged Payable reports now hide the currency and account columns by default, reducing visual clutter. Users can still enable these details when needed, making routine review easier while preserving access to supporting information.
Original PR description
To simplify the Aged Receivable/Payable reports, we hide the currency and account columns by default. No Task - FP
Kanban card footers now use a slightly smaller default text size across many Odoo apps. This creates a more consistent, compact layout and removes the need for repeated view-specific styling.
Original PR description
Before this commit, the default font size for kanban footers was 1rem. A lot of kanban views overruled it by using classname `fs-6`. This commit changes the default font-size to .875rem (which is `fs-6`) which allows to remove the classname from a lot of archs.