Repository navigation
Conversation
| body="Test Message", | ||
| email_layout_xmlid=self.mail_notification_layout.xml_id, | ||
| message_type="email", | ||
| message_type="comment", |
There was a problem hiding this comment.
Would be better to disable mail_incoming_no_forward module instead of changing what is tested on an other module.
Why do we have this conflict ?
There was a problem hiding this comment.
instead of changing what is tested on an other module
The test is wrong, an email coming from Odoo is never of type email.
message_type='email' is for incoming
=> It must be fixed in any case
Why do we have this conflict ?
Because the test in mail_layout_force is wrong.
It tries to send an email but marks it as an incoming email (message_type='email' is for incoming).
This module prevents forwarding an incoming email to the followers
-> When it sees the message_type='email', it stops the message, which is the correct behavior.
"email" is the type of incoming mails. Outgoing emails must have the type "comment".
34c9db9 to
d972a3f
Compare
…wers Odoo forwards every incoming mail to all the followers, sent as `<sender name> <catchall address>`: - some mail servers reject it as impersonation (e.g. Microsoft Defender) - replies meant for the company only leak to the external followers
d972a3f to
311ef91
Compare
Context
Odoo natively behaves like a group chat:
To:mail header → the receiver don't know the other recipientsIssues
Odoo forward the mail as
<sender name> <catchall address>→ Odoo must be able to disable forwarding of external answers
Compatilibility
With module like mail_composer_cc_bcc, the sender can decide who will receive the answer.
→ Odoo should not forward the email in that case.