From 9a3261da858edfbd29e8f24e063866690f5c0590 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 10 Mar 2014 11:24:10 +0100 Subject: [PATCH] [IMP] email_template: allow extra builtins in rendering sandbox bzr revid: odo@openerp.com-20140310102410-m66aa8164tekr51t --- addons/email_template/email_template.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index afcda2b6efd..5469af23b25 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -63,6 +63,15 @@ try: 'quote': quote, 'urlencode': urlencode, 'datetime': datetime, + 'len': len, + 'abs': abs, + 'min': min, + 'max': max, + 'sum': sum, + 'filter': filter, + 'reduce': reduce, + 'map': map, + 'round': round, # dateutil.relativedelta is an old-style class and cannot be directly # instanciated wihtin a jinja2 expression, so a lambda "proxy" is