Thursday, April 17, 2025
3 changes
Code cleanup and technical improvements
The server action form layout has been reorganized so related options are grouped more clearly by action type. This is an internal cleanup that makes the WhatsApp-related configuration easier to maintain and extend, with no expected change for day-to-day users.
Original PR description
*: whatsapp This commit refactors the form view for server actions by better grouping the fields by action state. This will help to maintain the arch and its extensions. Task id: opw-4672326
The appointment booking form code was reorganized and updated to use Odoo's newer interaction framework. This internal modernization helps keep the appointment experience maintainable and aligned with the website platform, without introducing major visible changes for users.
This update replaces an older internal data grouping method with a more suitable one in areas where the overall group count is not needed. It helps keep reporting, grid, spreadsheet, subscription, and cohort features aligned with upcoming platform changes while preserving current behavior.
Original PR description
The `web_read_group` function differs from `formatted_read_group` by including the global count of groups within and outside the offset/limit parameters. This information is often unnecessary for most calls to `web_read_group`, especially when no limit or offset is applied. Furthermore, the signature of `web_read_group` might change in the near future (see https://github.com/odoo/odoo/pull/133224). Therefore, this commit switches to `formatted_read_group` in scenarios where the total group count is not required or is already available. https://github.com/odoo/odoo/pull/206021