[FIX] mail: return guests in /help command
task-2917720 X-original-commit: 320501875e027ae8fbb46d1c8b892d2f189595b7 Part-of: odoo/odoo#117717
This commit is contained in:
committed by
Sébastien Theys
parent
4b98911916
commit
7b5b26d8a0
@@ -1208,7 +1208,7 @@ class Channel(models.Model):
|
||||
else:
|
||||
all_channel_members = self.env['mail.channel.member'].with_context(active_test=False)
|
||||
channel_members = all_channel_members.search([('partner_id', '!=', partner.id), ('channel_id', '=', self.id)])
|
||||
msg = _("You are in a private conversation with <b>@%s</b>.", _(" @").join(html_escape(member.partner_id.name) for member in channel_members) if channel_members else _("Anonymous"))
|
||||
msg = _("You are in a private conversation with <b>@%s</b>.", _(" @").join(html_escape(member.partner_id.name or member.guest_id.name) for member in channel_members) if channel_members else _("Anonymous"))
|
||||
msg += self._execute_command_help_message_extra()
|
||||
|
||||
self._send_transient_message(partner, msg)
|
||||
|
||||
Reference in New Issue
Block a user