|
11 | 11 | from odoo.addons.mail.models.mail_mail import MailMail as upstream |
12 | 12 | from odoo.addons.mail.tests.test_mail_composer import TestMailComposer |
13 | 13 |
|
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 |
15 | 15 | # overwritten in this module changes, we might have to reflect those changes |
16 | 16 | # in our version. The change is detected by computing the hash on the upstream code. |
17 | 17 | # To check what needs to be done, look at the commits in Odoo: |
|
23 | 23 | "46172c91183f2cb50b22a6b3b5e3869b", |
24 | 24 | "8f26c4084cc7fc300e64d19ccdc944fe", |
25 | 25 | "db6cc0d3513a0c85bd716e4cb0a4d09c", |
26 | | - "458982c6cb3a347b13008f7d8130f633", # 2025-04-08, odoo commit 3af276804101 |
| 26 | + "458982c6cb3a347b13008f7d8130f633", # odoo commit 3af276804101 |
27 | 27 | "2e0c730330ae3bdf00c6bfd956b0527b", |
| 28 | + "172e9656a6089deab948fe43d4bb31de", # odoo commit 465f907835be |
28 | 29 | ] |
29 | 30 |
|
30 | 31 |
|
@@ -58,6 +59,7 @@ def test_upstream_file_hash(self): |
58 | 59 | func = inspect.getsource(upstream._send).encode() |
59 | 60 | func_hash = hashlib.md5(func).hexdigest() |
60 | 61 | if func_hash not in VALID_HASHES: |
| 62 | + logging.info("New hash: %(hash)s", func_hash) |
61 | 63 | logging.error( |
62 | 64 | "mail.mail#_send has changed in upstream, " |
63 | 65 | "please adapt the override and add the new hash above", |
|
0 commit comments