Ivan Yelizariev
5 years ago
No known key found for this signature in database
GPG Key ID: 93F14FB6A8B57057
2 changed files with
3 additions and
3 deletions
-
mail_fix_553/mail_fix_553.py
-
mail_move_message/mail_move_message_models.py
|
|
@ -148,7 +148,8 @@ class MailMail(osv.Model): |
|
|
|
attachments=attachments, |
|
|
|
message_id=mail.message_id, |
|
|
|
references=mail.references, |
|
|
|
object_id=mail.res_id and ("{}-{}".format(mail.res_id, mail.model)), |
|
|
|
object_id=mail.res_id |
|
|
|
and ("{}-{}".format(mail.res_id, mail.model)), |
|
|
|
subtype="html", |
|
|
|
subtype_alternative="plain", |
|
|
|
headers=headers, |
|
|
|
|
|
@ -451,8 +451,7 @@ class MailMessage(models.Model): |
|
|
|
for record in reads: |
|
|
|
name = record["record_name"] or "" |
|
|
|
extended_name = " [{}] ID {}".format( |
|
|
|
record.get("model", "UNDEF"), |
|
|
|
record.get("res_id", "UNDEF"), |
|
|
|
record.get("model", "UNDEF"), record.get("res_id", "UNDEF"), |
|
|
|
) |
|
|
|
res.append((record["id"], name + extended_name)) |
|
|
|
return res |
|
|
|