[IMP] email_template: add urllib.quote in template rendering context
bzr revid: odo@openerp.com-20111010103637-rev1ixeagcpxk34o
This commit is contained in:
parent
ba59e7d618
commit
ae7de39d53
|
@ -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''
|
||||
|
|
Loading…
Reference in New Issue