Daily updates from Odoo
Thursday, August 1, 2024
7 changes
1 change
Enhancements to existing features
User availability is now updated only when it actually changes or when a websocket disconnects, instead of refreshing every minute. This lowers server load while keeping chat and presence statuses accurate across devices.
Original PR description
*: hr_holidays, mail. Before this PR, the main tab updated the user presence every minute. As a result of this update, it would also receive the IM statuses it was interested in. However, this approach puts significant pressure on the gevent worker, especially when it handles more databases than the registry can hold. To address this issue, this PR improves the way presences are updated: - Presences are sent and broadcasted when they change (e.g. away => online). - When a websocket disconnects, the user is considered disconnected. If other devices receive this notification, they will update the user presence immediately. These changes greatly reduce traffic caused by presence updates while keeping the IM statuses reliable.
5 changes
Enhancements to existing features
Website Studio screens and page setup have been made easier to use, with more relevant forms and sensible default values. This helps users configure website pages more smoothly and supports more flexible Studio behavior behind the scenes.
Spreadsheet actions can now keep more of their page state synchronized with the browser URL. This helps browser back, forward, and reload actions behave more consistently when users work with spreadsheets.
Original PR description
Since [1] a new prop (a function called updateResId) was give to the controllers components of the window actions to update the resId on the action state and url, when needed. For instance, the form…
Since [1] a new prop (a function called updateResId) was give to the controllers components of the window actions to update the resId on the action state and url, when needed. For instance, the form view after saving a new record, will update the state and the url with the newly created id. Since [2], the prop was also given to the controllers components of the client actions to update the resId. There is a need to update more than the resId. This PR will introduce a new prop with the aim to update the action state (updateActionState). This props will allow the controller components to update the state and push the new state to the router (updating the url). In practical, this allows to push a new state in the url, keeping the action service in sync. This synchronization between the router and the action service allows the browser back/forward/reload to work as expected. [1]: https://github.com/odoo/odoo/commit/c63d14a0485a553b74a8457aee158384e9ae6d3f [2]: https://github.com/odoo/odoo/commit/3ad4fd65387f60b524e5f786556963ead8ae9dfe
Users can now share error details directly from the error dialog when Documents is installed. The system creates a support document, generates a share link, copies it automatically, and shows it next to the share button to speed up support requests.
Original PR description
This commit adds to the error_dialog the possibility to share the error by creating a new text document on the fly in the automatically generated support folder and then generating a share link for this document. A new share button is therefore added to the error_dialog's footer as soon as documents is installed and the generated share link is directly copied upon pressing the button as well as displayed next to the button afterwards. task-3883329
Barcode screens now use clearer wording for scrap actions and wrong-product scan messages, reducing confusion for warehouse staff. Batch transfer creation is also simplified by removing an unnecessary label option and showing more useful partner and batch information.
Original PR description
In this PR: --------------------------- - In the scrap view, the 'Confirm' button has been rephrased as the 'Scrap' button. - After grouping by warehouse, the '+ Warehouse' button, which appeared, has been removed. - Selection for creating batch transfers has been improved: - Removed the 'Assign Label' option. - Partner and batch information have been added. - The notification message for scanning the wrong product has been rephrased. task-id : 3801674
On mobile devices, navigation breadcrumbs are moved from the control panel into the top navigation bar. This frees up valuable screen space, reducing layout wrapping and making key controls easier to use on smaller screens.
Original PR description
*: spreadsheet_edition Ususally, the Breadcrumbs representing the different steps of the user's navigation is displayed in the ControlPanel. But, even while simplified for smaller screens, this layout takes a lot of screen realestate on smartphone-like screen sizes. To reclaim this space in the ControlPanel and avoid as much as possible the ControlPanel to wrap on multiple lines, this commit applies the required adaptation in enterprise. task-3336242
1 change
Enhancements to existing features
This update improves the performance of how article names are displayed in the Knowledge module by optimizing the underlying data retrieval process. The change ensures that the system fetches all necessary information efficiently, reducing unnecessary database queries and improving overall application responsiveness.
Original PR description
This commit is a backport of a04d119. The _compute_display_name needed more fields inside its depends to make it efficient. This commit handles this issue and updates the associated query counters. task-4061715