[IMP] email_template: add urllib.quote in template rendering context

bzr revid: odo@openerp.com-20111010103637-rev1ixeagcpxk34o
This commit is contained in:
Olivier Dony 2011-10-10 12:36:37 +02:00
parent ba59e7d618
commit ae7de39d53
1 changed files with 2 additions and 0 deletions

View File

@ -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''