Browse Source

💚 pre-commit: auto cleanups

pull/258/head
Ivan Yelizariev 5 years ago
parent
commit
5865f94a21
No known key found for this signature in database GPG Key ID: 93F14FB6A8B57057
  1. 3
      mail_fix_553/mail_fix_553.py
  2. 3
      mail_move_message/mail_move_message_models.py

3
mail_fix_553/mail_fix_553.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,

3
mail_move_message/mail_move_message_models.py

@ -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

Loading…
Cancel
Save