Thursday, April 6, 2023
7 changes · master
Resolved issues and error corrections
The kanban avatar field now checks whether a user has the needed access rights before showing actions such as adding users. This prevents employees with limited permissions from seeing controls they cannot use, reducing confusion and avoiding failed actions.
Original PR description
This commit creates a new useAccessRights hook which can be used by field components to check if the user has access to the specified model. This allows to hide features of the field that could only be used with the right access rights. The bug that it fixes in this case is the add user icon that appears in the kanban many2many_tags_avatar_field for any user while it is not possible to use with insufficient access rights. Steps to reproduce: give minimal access rights to Marc Demo user, log in as Marc Demo, go to calendar, go to online appointments and check if the add user icon is available. opw-3265086
Deleting a link preview in Mail no longer triggers an unexpected error. This keeps message cleanup smooth for users and avoids interruptions when managing conversations.
The task activity view now displays correctly again, resolving a broken layout that could make it harder for users to review task-related activities. This helps project teams navigate task information more easily and reduces visual confusion.
Original PR description
In this PR, we fixed the broken layout of the task activity view. task-3231708
Customer rating notifications for project tasks now match the configured rating setting. Users can subscribe to task rating updates only when customer ratings are enabled, and those subscriptions are removed for projects where ratings are turned off.
Original PR description
The customer rating field is disabled though in the chatter of the project we'll able to subscribe Task Rating subtype. This PR ensures that when the customer rating field is enabled, the user can get a subscription to Task Rating. If the user disables customer rating for an individual project then for that particular project Task Rating subtype will unsubscribe task-3231708
This fix prevents Point of Sale sessions from failing to load when product packagings with barcodes are configured. Businesses using packaged products can start sales sessions normally and see packaging information correctly.
Original PR description
Happen since 29d55e44 To reproduce the error: - Settings > Inventory > Enable "Product Packagings" - Inventory > Configuration > Products > Product Packagings - Create a new packaging having a barcode - Start a Point of Sale session - The session is not loaded and a traceback is raised Reason: we try to apply the find() method on an object instead of an array After this commit, the session is loaded and the packaging is correctly displayed
The chat window styling has been adjusted so its borders look cleaner and more consistent. This is a small visual fix that improves polish and readability without changing how chat works.
Original PR description
Before <img width="1033" alt="Screenshot 2023-04-06 at 17 49 24" src="https://user-images.githubusercontent.com/6569390/230431489-cb403194-3fe5-4873-8190-2a3cafcb5e62.png"> After <img width="1033" alt="Screenshot 2023-04-06 at 17 47 21" src="https://user-images.githubusercontent.com/6569390/230431527-bcd6160f-081e-470b-92be-50802e068ff8.png">
The chat window now shows a user's own message bubble with the correct visual orientation. This small correction improves readability and polish in Odoo messaging without changing how chat features work.
Original PR description
Before/After <img width="347" alt="Screenshot 2023-04-06 at 17 12 20" src="https://user-images.githubusercontent.com/6569390/230422343-bcccfe8b-7384-4946-9f94-73b2f5660c09.png"> <img width="342" alt="Screenshot 2023-04-06 at 17 10 40" src="https://user-images.githubusercontent.com/6569390/230422239-7bda3098-fd7f-4086-b843-7e69a2ceb489.png">