Browse Source

И это

pull/271/head
Eugene Molotov 5 years ago
parent
commit
da6d6a782d
No known key found for this signature in database GPG Key ID: FE2DBF750299DB3E
  1. 6
      mail_decode_address/models/mail_thread.py

6
mail_decode_address/models/mail_thread.py

@ -10,8 +10,10 @@ class MailThread(models.AbstractModel):
@api.model
def create(self, vals):
if vals.get("email_from"):
vals["email_from"] = tools.decode_smtp_header(vals["email_from"])
for f in ("email_from", "contact_name",):
if vals.get(f):
vals[f] = tools.decode_smtp_header(vals[f])
return super(MailThread, self).create(vals)
def _message_post_after_hook(self, message, msg_vals):

Loading…
Cancel
Save