Skip to content

Commit

Permalink
[FIX] mail: fix get_sys_logs to have the same behaviour than previous…
Browse files Browse the repository at this point in the history
… version

After convertion python2 to python3, the arg0 was send as dict instead
of one string. We prefer to keep the same behaviour that previously.
  • Loading branch information
JKE-be committed Oct 3, 2017
1 parent 436ad6e commit 58d4eb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/mail/models/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
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__)

Expand Down Expand Up @@ -71,7 +70,7 @@ def _get_sys_logs(self):
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")

Expand Down

0 comments on commit 58d4eb1

Please sign in to comment.