Monday, August 9, 2021
1 change · master
Enhancements to existing features
Many-to-many avatar fields now display clearly in kanban and list views, showing a small group of avatars with a count for additional people. This makes records involving multiple users or employees easier to scan while preserving quick access to chats from visible avatars.
Original PR description
Purpose The aim of the current task is to adapt the design of this new widget to the list and kanban views. SPECIFICATION Kanban when there is only one record set in the m2m field, display it like a…
Purpose The aim of the current task is to adapt the design of this new widget to the list and kanban views. SPECIFICATION Kanban when there is only one record set in the m2m field, display it like a many2one_avatar widget when there are two or three records set in the m2m field, display the avatars next to each other when there are more than three records set in the m2m field, display the first two avatars, then a grey circle with +X in it (where X is the number of records beyond the first two), when hovering the +X avatar, open a tooltip with the list of the remaining records the display order of the records is the same as the order in the m2m field the avatars behave like in the other avatar widgets (i.e. darkens on hover and clicking on it opens the chat) except the +X avatar that does not darken or has a cursor:pointer; on hover and is not clickable List same specs as for the kanban view, with the difference that the widget displays up to five records instead of three when the widget is editable display it like the current formview version of the many2many_avatar_user widget (i.e. tags with avatars) task-2563591 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr