Wednesday, February 26, 2025
2 changes · saas-18.2
Enhancements to existing features
Email composition and template-based messaging now compute recipients more efficiently, especially when suggested recipients create new contacts. The change reduces unnecessary database work and adds performance checks to help prevent slowdowns from returning.
Original PR description
Since odoo/odoo#198095 templates enable suggested recipients fetch when computing recipients automatically. This made some query counters higher than before, hence adding some performance tests. After check, using suggested recipients actually creates partners for additional recipients. This was not the case with default recipients. Additional queries come from creating partners notably. Some performance tests are added then profiled. Some performance improvements are done in this PR to lessen number of irrelevant queries. Those are related to: prefetching, partner creation. Some other fiximps may come in a near future, notably with company_check on properties fields (under investigation). See sub commits for more details. Task-4599142
The Gantt view now positions focused dates so the start of the relevant time group is visible at the left edge, instead of centering the selected date. This makes navigation, including the Today button, more predictable and easier to follow when reviewing timelines.
Original PR description
This commit updates the behavior of focusDate to ensure that scrolling stops when the start of the group containing the date is visible on the left side of the grid, rather than centering the focused date within the grid. Pressing the 'Today' button now follows the same logic but focuses on the current date instead of the group. Part of task-4571228