Skip to content

Commit f5c4912

Browse files
committed
Merge PR #1628 into 16.0
Signed-off-by trisdoan
2 parents cb194b6 + 88212b2 commit f5c4912

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mail_composer_cc_bcc/models/mail_mail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _send( # noqa: max-complexity: 4
8181
email = mail._send_prepare_values()
8282
# ===== Same with native Odoo =====
8383
# headers
84-
headers = {"X-Odoo-Message-Id": mail.message_id}
84+
headers = {}
8585
bounce_alias = ICP.get_param("mail.bounce.alias")
8686
catchall_domain = ICP.get_param("mail.catchall.domain")
8787
if bounce_alias and catchall_domain:

mail_composer_cc_bcc/tests/test_mail_cc_bcc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@
1010
from odoo.addons.mail.models.mail_mail import MailMail as upstream
1111
from odoo.addons.mail.tests.test_mail_composer import TestMailComposer
1212

13+
# When Odoo upstream function _send in the mall.mail model, that has been fully
14+
# overwritten in this module changes, we might have to reflect those changes
15+
# in our version. The change is detected by computing the hash on the upstream code.
16+
# To check what needs to be done, look at the commits in Odoo:
17+
# git log --oneline -- addons/mail/models/mail_mail.py
1318
VALID_HASHES = [
1419
"d52cb36b88b33abc9556f7be6718d93f",
1520
"461467cd5b356072fc054468c75f6e26",
1621
"5d1ab352416f5074e131f35f20098d5b",
1722
"46172c91183f2cb50b22a6b3b5e3869b",
1823
"8f26c4084cc7fc300e64d19ccdc944fe",
1924
"db6cc0d3513a0c85bd716e4cb0a4d09c",
25+
"458982c6cb3a347b13008f7d8130f633", # 2025-04-08, odoo commit 3af276804101
2026
]
2127

2228

0 commit comments

Comments
 (0)