summaryrefslogtreecommitdiff
path: root/addons/project/project_mail_template_data.xml
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2016-06-08 09:57:33 +0200
committerAaron Bohy <aab@odoo.com>2016-06-16 14:59:41 +0200
commitad0bc9adf2c739cc0dfdacda9a6eca9b5a59d9ef (patch)
tree698daa275197a5e1a9c3fcbb8029e91fc4377987 /addons/project/project_mail_template_data.xml
parent3c319b2b8b300321be2f296e1b47076e80654f1d (diff)
[ADD] project: onboarding tour
Also: - creation of a (archived by default) sample project with tasks, that the user can activate to discover the project app. - improvement of the simplified form view to create a new project
Diffstat (limited to 'addons/project/project_mail_template_data.xml')
-rw-r--r--addons/project/project_mail_template_data.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/addons/project/project_mail_template_data.xml b/addons/project/project_mail_template_data.xml
index 229b33704ab..489643afa6a 100644
--- a/addons/project/project_mail_template_data.xml
+++ b/addons/project/project_mail_template_data.xml
@@ -11,7 +11,7 @@
<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([], order="create_date desc")[0]
+ % set last_created_project = user.env['project.project'].search([('alias_id','<>',False)], order="create_date desc")[0]
<div style="margin: 10px auto;">
<table cellspacing="0" cellpadding="0" style="width:100%;">
@@ -35,14 +35,16 @@
<p dir="ltr" style="margin-top:0pt;margin-bottom:8pt;">
<span style="font-size:13px;font-weight:bold;">What’s next?</span></p>
<ul style="margin-top:0pt;margin-bottom:0pt;font-size:13px;list-style-type:disc;">
- <li dir="ltr">
- <p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
- <span>Try creating a task by sending an email to </span>
- <a href="mailto:${last_created_project.alias_id.name_get()[0][1] if last_created_project.alias_id.alias_domain else user.company_id.email}">
- <span style="font-weight:bold; text-decoration:underline;">${last_created_project.alias_id.name_get()[0][1] if last_created_project.alias_id.alias_domain else user.company_id.email}</span>
- </a>
- </p>
- </li>
+ % if last_created_project:
+ <li dir="ltr">
+ <p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
+ <span>Try creating a task by sending an email to </span>
+ <a href="mailto:${last_created_project.alias_id.name_get()[0][1] if last_created_project.alias_id.alias_domain else user.company_id.email}">
+ <span style="font-weight:bold; text-decoration:underline;">${last_created_project.alias_id.name_get()[0][1] if last_created_project.alias_id.alias_domain else user.company_id.email}</span>
+ </a>
+ </p>
+ </li>
+ % endif
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:8pt;">
<span><a href="/web#view_type=list&model=res.users&action=base.action_res_users">