From d6f7f3b15185202b6daff31ad7bc0ba6c229cf66 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Wed, 12 Feb 2020 07:22:25 +0000 Subject: [PATCH] :green_heart: mail_fix_553/ --- mail_fix_553/__manifest__.py | 2 +- mail_fix_553/mail_fix_553.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mail_fix_553/__manifest__.py b/mail_fix_553/__manifest__.py index 33eb8af..af6beee 100644 --- a/mail_fix_553/__manifest__.py +++ b/mail_fix_553/__manifest__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- { "name": "Fix mail error 553", - "version": "0.3", + "version": "10.0.1.0.3", "author": "IT-Projects LLC, Ivan Yelizariev", "license": "LGPL-3", "category": "Discuss", diff --git a/mail_fix_553/mail_fix_553.py b/mail_fix_553/mail_fix_553.py index b82be57..6edc462 100644 --- a/mail_fix_553/mail_fix_553.py +++ b/mail_fix_553/mail_fix_553.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- - +# TODO +# pylint: disable=old-api7-method-defined,invalid-commit import base64 import logging import re @@ -8,7 +9,7 @@ from email.utils import formataddr from openerp import SUPERUSER_ID, tools from openerp.addons.base.ir.ir_mail_server import MailDeliveryException from openerp.osv import osv -from openerp.tools.safe_eval import safe_eval as eval +from openerp.tools.safe_eval import safe_eval from openerp.tools.translate import _ _logger = logging.getLogger(__name__) @@ -116,7 +117,7 @@ class MailMail(osv.Model): ) if mail.headers: try: - headers.update(eval(mail.headers)) + headers.update(safe_eval(mail.headers)) except Exception: pass