Daily updates from Odoo
Tuesday, July 4, 2023
2 changes · master
Enhancements to existing features
Portal users now see a Knowledge entry on their personal homepage, including the number of articles they can access. This makes it easier for customers or external users to find and open shared Knowledge content from the portal.
Original PR description
This commit adds an entry inside the `my` homepage for portal users, this entry shows the number of articles that portal user has access to and redirects the user to Knowledge's frontend view. We are adding a new template inside the views folder that inherits from the portal template for the user's `my` page and adds the entry after the others. We are also adding a portal controller that redirects the user to their Knowledge form view using a redirect to the route `/knowledge/home` so that we use route that already exists for future portal enhancements. task-3299238
Resolved issues and error corrections
Search suggestions in mail-related areas now wait briefly before requesting results, instead of sending a request for every keystroke. This reduces unnecessary network and server load while keeping channel search and mention suggestions responsive for users.
Original PR description
Before this commit, fetching suggestions (e.g. channel selector in discuss sidebar "Find or create a channel", or `@`-mentions) were performing RPCs on each user input, resulting in wasted network and server load. This commit fixes the issue by debouncing the fetching of suggestions to 0.5 sec. X-original-commit: 6770ac3 https://github.com/odoo/odoo/pull/126952