[FIX] mail: fetches the attachments checksum for cache control.

This commit makes so that we also fetch the checksum of the attachments
of mail.messages to use it for cache control.

Before this commit, the urls of message attachments had
`undefined` for the signature parameter.
This commit is contained in:
Thanh Dodeur
2020-04-17 11:09:41 +00:00
parent 6688f45470
commit a6e96c256d
+1
View File
@@ -977,6 +977,7 @@ class Message(models.Model):
attachment_ids = []
for attachment in message_sudo.attachment_ids:
attachment_ids.append({
'checksum': attachment.checksum,
'id': attachment.id,
'filename': attachment.name,
'name': attachment.name,