File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def _send( # noqa: max-complexity: 4
81
81
email = mail ._send_prepare_values ()
82
82
# ===== Same with native Odoo =====
83
83
# headers
84
- headers = {"X-Odoo-Message-Id" : mail . message_id }
84
+ headers = {}
85
85
bounce_alias = ICP .get_param ("mail.bounce.alias" )
86
86
catchall_domain = ICP .get_param ("mail.catchall.domain" )
87
87
if bounce_alias and catchall_domain :
Original file line number Diff line number Diff line change 10
10
from odoo .addons .mail .models .mail_mail import MailMail as upstream
11
11
from odoo .addons .mail .tests .test_mail_composer import TestMailComposer
12
12
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
13
18
VALID_HASHES = [
14
19
"d52cb36b88b33abc9556f7be6718d93f" ,
15
20
"461467cd5b356072fc054468c75f6e26" ,
16
21
"5d1ab352416f5074e131f35f20098d5b" ,
17
22
"46172c91183f2cb50b22a6b3b5e3869b" ,
18
23
"8f26c4084cc7fc300e64d19ccdc944fe" ,
19
24
"db6cc0d3513a0c85bd716e4cb0a4d09c" ,
25
+ "458982c6cb3a347b13008f7d8130f633" , # 2025-04-08, odoo commit 3af276804101
20
26
]
21
27
22
28
You can’t perform that action at this time.
0 commit comments