Eugene Molotov
5 years ago
No known key found for this signature in database
GPG Key ID: FE2DBF750299DB3E
1 changed files with
4 additions and
2 deletions
-
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): |
|
|
|