diff options
| author | Jeremy Kersten <jke@odoo.com> | 2017-10-02 23:37:42 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2017-10-03 08:44:34 +0200 |
| commit | 58d4eb113719eb17f535c97939bbb2654dde5c6f (patch) | |
| tree | b3961ad0e532267ab25be67af7fb5371936527e7 | |
| parent | 436ad6efa4b774df8733271b17a5dac5291bec73 (diff) | |
[FIX] mail: fix get_sys_logs to have the same behaviour than previous 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.
| -rw-r--r-- | addons/mail/models/update.py | 5 |
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") |
