Skip to content

Commit 5f0d4f0

Browse files
committed
[UPD] mail_composer_cc_bcc: update hash table
Test was showing errors because upstream _send function changed. The changes themselves where not relevant, because overridden function works on one message at a time, not a list.
1 parent 732f776 commit 5f0d4f0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

mail_composer_cc_bcc/tests/test_mail_cc_bcc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from odoo.addons.mail.models.mail_mail import MailMail as upstream
1212
from odoo.addons.mail.tests.test_mail_composer import TestMailComposer
1313

14-
# When Odoo upstream function _send in the mall.mail model, that has been fully
14+
# When Odoo upstream function _send in the mail.mail model, that has been fully
1515
# overwritten in this module changes, we might have to reflect those changes
1616
# in our version. The change is detected by computing the hash on the upstream code.
1717
# To check what needs to be done, look at the commits in Odoo:
@@ -23,8 +23,9 @@
2323
"46172c91183f2cb50b22a6b3b5e3869b",
2424
"8f26c4084cc7fc300e64d19ccdc944fe",
2525
"db6cc0d3513a0c85bd716e4cb0a4d09c",
26-
"458982c6cb3a347b13008f7d8130f633", # 2025-04-08, odoo commit 3af276804101
26+
"458982c6cb3a347b13008f7d8130f633", # odoo commit 3af276804101
2727
"2e0c730330ae3bdf00c6bfd956b0527b",
28+
"172e9656a6089deab948fe43d4bb31de", # odoo commit 465f907835be
2829
]
2930

3031

@@ -58,6 +59,7 @@ def test_upstream_file_hash(self):
5859
func = inspect.getsource(upstream._send).encode()
5960
func_hash = hashlib.md5(func).hexdigest()
6061
if func_hash not in VALID_HASHES:
62+
logging.info("New hash: %(hash)s", func_hash)
6163
logging.error(
6264
"mail.mail#_send has changed in upstream, "
6365
"please adapt the override and add the new hash above",

0 commit comments

Comments
 (0)