Monday, October 17, 2022
7 changes · master
Enhancements to existing features
Grouped data queries were simplified to avoid unnecessary database work when calculating and counting records. This should improve performance for reports and list views that group records, with only a small compatibility note for ordering by record ID in advanced uses.
Original PR description
[IMP] core: simplify SQL query generated from read_group - The query aggreagate the `min(<table>.id)` but the result of it is removed later in `_read_group_format_result`. Then it generates a waste of CPU/IO for PostgreSQL. It was usefull only to able to sort only by `id`, but it always better to sort on the groupby key, because PostgreSQL need to already do to create groups. - Also `<table>.id` inside the `count` generate extra work from PostgreSQL because it needs to check if each `id` is NOT NULL (always) and fetch `id` from disk for nothing. task-2994273
The company form no longer shows an option to duplicate a company, because duplicating companies is not supported. This prevents users from trying an action that would fail and reduces confusion in company administration.
Original PR description
Ducplicating a company is not allowed (see copy override in base/res_company.py), therefore removing the button from the view altogether can avoid user confusion. Task-3000228
The Discuss sidebar code was reorganized so more of its behavior is managed in shared data models rather than screen components. This makes the mail and live chat areas easier to maintain and should reduce future development risk without changing the user experience.
Original PR description
\* = im_livechat + Create DiscussSidebarView + Replace the use of useUpdate with useUpdateToModel Task-3004215.
The messaging and live chat typing indicators were reorganized so their behavior is handled more consistently behind the scenes. This helps keep the user experience reliable while making future maintenance easier, with no major visible workflow changes expected.
Original PR description
*: im_livechat Task-3004018.
The mail app’s messaging menu code was reorganized to make it easier to maintain and evolve. This internal cleanup helps reduce future development risk without changing the user experience.
Original PR description
Task-3004195.
The mail app's typing status logic was reorganized so it is handled in shared data models rather than screen components. This is an internal improvement that should make the feature easier to maintain without changing how users experience typing indicators.
Original PR description
Task-3002619.
The Discuss mobile mailbox selection code was reorganized so its behavior is handled in the underlying app model rather than directly in the screen component. This makes the mail interface easier to maintain and evolve, with minimal direct impact on daily users.
Original PR description
+ Create DiscussMobileMailboxSelectionView model + Pass DiscussMobileMailboxSelectionView record as props Task-3014747.