From 736e850a8ee4df1efeae41407a83bcde356d28bd Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Fri, 8 Sep 2017 11:44:52 +0200 Subject: [PATCH] [FIX] mass_mailing: Use werzeug.urls instead of urlparse werkzeug.urls is used instead of urlparse since https://github.com/odoo/odoo/commit/01e35141479b8dfc4a390518f89fc52e7cec5396#diff-f72572eec7ff7bbeca23ba84eda9fc38L35 Error introduced by forwardport https://github.com/odoo/odoo/commit/ba294a397e6ee3eb7dd0153f0726a880f6b77459 --- addons/mass_mailing/models/mail_mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mass_mailing/models/mail_mail.py b/addons/mass_mailing/models/mail_mail.py index e5072060fd5..e67010ca3a7 100644 --- a/addons/mass_mailing/models/mail_mail.py +++ b/addons/mass_mailing/models/mail_mail.py @@ -65,7 +65,7 @@ class MailMail(models.Model): href = match[0] url = match[1] - parsed = urlparse.urlparse(url, scheme='http') + parsed = werkzeug.urls.url_parse(url, scheme='http') if parsed.scheme.startswith('http') and parsed.path.startswith('/r/'): new_href = href.replace(url, url + '/m/' + str(self.statistics_ids[0].id))