odoo/odoo#199994

Created by SM Engagement, Thomas Josse (thjo)
Merged at 66ac8d8389db6eec99963e8469aff53e63572021

Statuses:

label
odoo-dev:saas-18.2-mail-email_like_cleanup-thjo
head
3a103ae11f111172c29d53ad60c60865ce4e6545
merged
6 months ago by Marketing, Thibault Delavallee (tde)
odoo/odoo
saas-18.2 #199994
saas-18.3
saas-18.4
19.0
master #204895

[FIX] mail, various: improve email-like discussion flow

This commit fixes a list of issues with the recently merged new email-like changes done to the mail composer. Here is a list of fixes done in this commit.

A newly created partner from the small composer using the mailbox notation would use the email as name, even though it was indeed provided to the composer. Now the name is indeed used to create the partner.

In some modules, e.g. sales, the customer of the model is set as follower of the document when it can access a record as portal. Thus the customer would be set as a bcc instead of an actual recipients. Now when a customer is set on a
record as a follower we automatically show the bcc. This way the user isn't surprised if the mail is sent to the customer.

task-4610531

Followup of #188642 (see task-4273479: [mail] Email-like recipients)