[FIX] project: display avatar in 'my tasks' page
Steps to reproduce: - Install Project module - Login as admin - Create a task an assign it to admin - Go to 'My Tasks' page (`example.com/my/tasks`) Issue: The avatar of assignee is not displayed. Cause: Using a row over two elements that are already in a table. Solution: Add `px-0` bootstrap CSS class to the avatar. opw-3592972 closes odoo/odoo#147369 X-original-commit: fc94a19c3ae66765a2f814533c17d6ec0f9533fb Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com> Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
This commit is contained in:
@@ -75,7 +75,8 @@
|
||||
</td>
|
||||
<td>
|
||||
<t t-set="assignees" t-value="task.sudo().user_ids"/>
|
||||
<div t-if="assignees" class="row flex-nowrap">
|
||||
<div t-if="assignees" class="row flex-nowrap ps-3">
|
||||
<img class="rounded-circle o_portal_contact_img me-2 px-0" t-attf-src="#{image_data_uri(assignees[:1].avatar_128)}" alt="User" style="width: 20px; height: 20px;"/>
|
||||
<span t-out="'%s%s' % (assignees[:1].name, ' + %s others' % len(assignees[1:]) if len(assignees.user_ids) > 1 else '')" t-att-title="'\n'.join(assignees.mapped('name'))"/>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user