From 21b6ef38cf5a979859ba2b2c1d8843bda74ec442 Mon Sep 17 00:00:00 2001 From: zel-odoo Date: Thu, 30 Mar 2023 08:49:13 +0000 Subject: [PATCH] [IMP] mail: activity visual update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. always show the name of the assignee. 2. replace the icon with avatar 3. bold the time info. task-3142628 closes odoo/odoo#116349 Signed-off-by: Alexandre Kühn (aku) --- .../web/activity/activity_list_popover_item.js | 9 +++++++++ .../web/activity/activity_list_popover_item.xml | 16 +++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/addons/mail/static/src/web/activity/activity_list_popover_item.js b/addons/mail/static/src/web/activity/activity_list_popover_item.js index 2e0b82c6757..53610458015 100644 --- a/addons/mail/static/src/web/activity/activity_list_popover_item.js +++ b/addons/mail/static/src/web/activity/activity_list_popover_item.js @@ -12,6 +12,7 @@ import { useAttachmentUploader } from "@mail/attachments/attachment_uploader_hoo import { Component, useState } from "@odoo/owl"; import { _t } from "@web/core/l10n/translation"; +import { url } from "@web/core/utils/urls"; /** * @typedef {Object} Props @@ -96,4 +97,12 @@ export class ActivityListPopoverItem extends Component { await this.env.services["mail.activity"].markAsDone(this.props.activity, [attachmentId]); this.props.onActivityChanged(); } + + get activityAssigneeAvatar() { + return url("/web/image", { + field: "avatar_128", + id: this.props.activity.user_id[0], + model: "res.users", + }); + } } diff --git a/addons/mail/static/src/web/activity/activity_list_popover_item.xml b/addons/mail/static/src/web/activity/activity_list_popover_item.xml index fc413ced635..834e724d2e8 100644 --- a/addons/mail/static/src/web/activity/activity_list_popover_item.xml +++ b/addons/mail/static/src/web/activity/activity_list_popover_item.xml @@ -26,13 +26,15 @@ -
- - - - - - - +
+ +
+ + + - + + +