summaryrefslogtreecommitdiff
path: root/addons/mail/models/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/models/update.py')
-rw-r--r--addons/mail/models/update.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/mail/models/update.py b/addons/mail/models/update.py
index accbc120f13..fa8b6fd593a 100644
--- a/addons/mail/models/update.py
+++ b/addons/mail/models/update.py
@@ -13,8 +13,7 @@ from odoo import api, release, SUPERUSER_ID
from odoo.exceptions import UserError
from odoo.models import AbstractModel
from odoo.tools.translate import _
-from odoo.tools import config
-from odoo.tools import misc
+from odoo.tools import config, misc, ustr
_logger = logging.getLogger(__name__)
@@ -71,7 +70,7 @@ class PublisherWarrantyContract(AbstractModel):
Utility method to send a publisher warranty get logs messages.
"""
msg = self._get_message()
- arguments = {'arg0': msg, "action": "update"}
+ arguments = {'arg0': ustr(msg), "action": "update"}
url = config.get("publisher_warranty_url")