summaryrefslogtreecommitdiff
path: root/addons/project/data/project_mail_template_data.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-08-22 16:12:08 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-30 15:54:55 +0200
commit97425bfe3f2b317595e7086aedf7b5689dc9d218 (patch)
tree37b883265d2b14a91783b6b9b157fbef2ee32a2d /addons/project/data/project_mail_template_data.xml
parentb4a159d2614d64aae8570c49ee79121fdb30676c (diff)
[REF] various: make mako mail templates more xml compliant
As we will soon improve the sanitizer we will be able to sanitize email templates body. However this implies some cleaning in the templates to be sure mako is not considered as invalid html / xml and therefore removed from the template body.
Diffstat (limited to 'addons/project/data/project_mail_template_data.xml')
-rw-r--r--addons/project/data/project_mail_template_data.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/project/data/project_mail_template_data.xml b/addons/project/data/project_mail_template_data.xml
index 7c045d2b635..db637646b85 100644
--- a/addons/project/data/project_mail_template_data.xml
+++ b/addons/project/data/project_mail_template_data.xml
@@ -12,9 +12,8 @@
<field name="auto_delete" eval="True"/>
<field name="scheduled_date">${(datetime.datetime.now() + relativedelta(days=3)).strftime('%Y-%m-%d %H:%M')}</field>
<field name="body_html" ><![CDATA[
- % set last_created_project = user.env['project.project'].search([('alias_id','<>',False)], order="create_date desc")[0]
-
<div style="margin: 10px auto;">
+ % set last_created_project = user.env['project.project'].search([('alias_id','!=',False)], order="create_date desc")[0]
<table cellspacing="0" cellpadding="0" style="width:100%;">
<tbody>
<tr>