[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
This commit is contained in:
Yannick Tivisse
2017-09-08 11:51:28 +02:00
parent 7c1e1e5afc
commit 736e850a8e
+1 -1
View File
@@ -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))