From ae7de39d534757267a74a10444686b90cfba70c8 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 10 Oct 2011 12:36:37 +0200 Subject: [PATCH] [IMP] email_template: add urllib.quote in template rendering context bzr revid: odo@openerp.com-20111010103637-rev1ixeagcpxk34o --- addons/email_template/email_template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index 3eb0c60cd41..eedeff8a96a 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -28,6 +28,7 @@ from osv import osv from osv import fields import tools from tools.translate import _ +from urllib import quote as quote try: from mako.template import Template as MakoTemplate @@ -66,6 +67,7 @@ class email_template(osv.osv): user=user, # context kw would clash with mako internals ctx=context, + quote=quote, format_exceptions=True) if result == u'False': result = u''