200 lines
12 KiB
XML
200 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<odoo>
|
||
<data noupdate="1">
|
||
<!-- notify to admin of module installation -->
|
||
<record id="mail_template_data_module_install_project" model="mail.template">
|
||
<field name="name">project module install then send email</field>
|
||
<field name="subject">Your Odoo Project application</field>
|
||
<field name="email_from">help@odoo.com</field>
|
||
<field name="email_to">${user.email|safe}</field>
|
||
<field name="lang">${user.lang}</field>
|
||
<field name="model_id" ref="base.model_ir_module_module"/>
|
||
<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[
|
||
<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>
|
||
<td style="padding:2px;width:30%;">
|
||
<img src="web/static/src/img/logo.png"/>
|
||
</td>
|
||
<td style="vertical-align: top; padding: 8px 10px;text-align: left;font-size: 14px;">
|
||
<a href="web/login" style="float:right ;margin:15px auto;background: #875A7B;border-radius: 5px;color: #ffffff;font-size: 16px;padding: 10px 20px 10px 20px;text-decoration: none;">Auto Login</a>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<table style="width:100%;text-align:justify;margin:0 auto;border-collapse:collapse;border-top:1px solid lightgray"">
|
||
<tbody>
|
||
<tr>
|
||
<td style="padding:15px 10px;font-size:20px">
|
||
<p dir="ltr" style="font-size:15px;margin-top:0pt;margin-bottom:0pt;">
|
||
<span>Your Odoo Project application is up and running</span></p><br>
|
||
<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;">
|
||
% 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">
|
||
<span style="font-weight:bold; text-decoration:underline;">Invite new users</span></a></span>
|
||
<span>to collaborate</span>
|
||
</p>
|
||
</li>
|
||
</ul> <br>
|
||
<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>Track hours with timesheets,</span>
|
||
</p>
|
||
</li>
|
||
<li dir="ltr">
|
||
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
|
||
<span>Plan tasks and resources with forecasts,</span>
|
||
</p>
|
||
</li>
|
||
<li dir="ltr">
|
||
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
|
||
<span>Get smart reporting and accurate dashboards,</span>
|
||
</p>
|
||
</li>
|
||
<li dir="ltr">
|
||
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
|
||
<span>Bill time on tasks or issues,</span>
|
||
</p>
|
||
</li>
|
||
<li dir="ltr">
|
||
<p dir="ltr" style="margin-top:0pt;margin-bottom:8pt;">
|
||
<span>And much more...</span>
|
||
</p>
|
||
</li>
|
||
</ul>
|
||
<br>
|
||
<p dir="ltr" style="font-size:13px;line-height:1.3;margin-top:0pt;margin-bottom:8pt;">
|
||
<span style="font-weight:bold;">Need Help?</span>
|
||
<span style="font-style:italic;">You’re not alone</span>
|
||
</p>
|
||
<p dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;">
|
||
<span>We would be delighted to assist you along the way. Contact us through our
|
||
<a href="https://www.odoo.com/help">support form</a> if you have any question.
|
||
You can also discover how to get the best out of Odoo Project with our </span>
|
||
<a target="_blank" href="https://www.odoo.com/documentation/user/11.0/project.html">
|
||
<span style="text-decoration:underline;">User Documentation</span></a>
|
||
</span><span> or with our </span>
|
||
<a target="_blank" href="https://www.odoo.com/documentation">
|
||
<span style="text-decoration:underline;">API Documentation</span></a>
|
||
</p>
|
||
<br>
|
||
<p dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;"><span>Enjoy your Odoo experience,</span></p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<div dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;color:grey">
|
||
<span><br/>-- <br/>The Odoo Team<br/>PS: People love Odoo, check </span><a target="_blank" href="https://twitter.com/odoo/favorites"><span style="text-decoration:underline;">what they say about it.</span></a></span>
|
||
</div>
|
||
</div>]]></field>
|
||
</record>
|
||
|
||
<function
|
||
id="mail_template_function_module_install_project"
|
||
model="mail.template"
|
||
name="send_mail"
|
||
eval="[ref('mail_template_data_module_install_project'), ref('base.module_project')]"/>
|
||
|
||
<!-- Mail sent to request a rating for a task -->
|
||
<record id="rating_project_request_email_template" model="mail.template">
|
||
<field name="name">Task: Rating Request</field>
|
||
<field name="email_from">${object.rating_get_rated_partner_id().email or '' | safe}</field>
|
||
<field name="subject">${object.project_id.company_id.name}: Service Rating Request</field>
|
||
<field name="model_id" ref="project.model_project_task"/>
|
||
<field name="partner_to" >${object.rating_get_partner_id().id}</field>
|
||
<field name="auto_delete" eval="True"/>
|
||
<field name="body_html"><![CDATA[
|
||
<div style="background:#F0F0F0;color:#515166;padding:10px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;">
|
||
% set access_token = object.rating_get_access_token()
|
||
<table style="width:600px;margin:5px auto;">
|
||
<tbody>
|
||
<tr><td>
|
||
<a href="/"><img src="/web/binary/company_logo" style="vertical-align:baseline;max-width:100px;" /></a>
|
||
</td><td style="text-align:right;vertical-align:middle;">
|
||
Satisfaction Survey
|
||
</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<table style="width:600px;margin:0px auto;background:white;border:1px solid #e1e1e1;">
|
||
<tbody>
|
||
<tr><td style="padding:15px 20px 10px 20px;">
|
||
<p>Hello,</p>
|
||
<p>Please take a moment to rate our services related to the task "<strong>${object.name}</strong>"
|
||
assigned to <strong>${object.rating_get_rated_partner_id().name}</strong>.</p>
|
||
<p>We appreciate your feedback. It helps us to improve continuously.</p>
|
||
</td></tr>
|
||
<tr><td style="padding:10px 20px">
|
||
<table summary="o_mail_notification" style="width:100%;border-top:1px solid #e1e1e1;">
|
||
<tr>
|
||
<td style="text-align:center;">
|
||
<h2 style="font-weight:300;font-size:18px;">
|
||
Tell us how you feel about our service:
|
||
</h2>
|
||
<div style="text-color: #888888">(click on one of these smileys)</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="padding:10px 10px;">
|
||
<table style="width:100%;text-align:center;">
|
||
<tr>
|
||
<td>
|
||
<a href="/rating/${access_token}/10">
|
||
<img alt="Satisfied" src="/rating/static/src/img/rating_10.png" title="Satisfied"/>
|
||
</a>
|
||
</td>
|
||
<td>
|
||
<a href="/rating/${access_token}/5">
|
||
<img alt="Not satisfied" src="/rating/static/src/img/rating_5.png" title="Not satisfied"/>
|
||
</a>
|
||
</td>
|
||
<td>
|
||
<a href="/rating/${access_token}/1">
|
||
<img alt="Highly Dissatisfied" src="/rating/static/src/img/rating_1.png" title="Highly Dissatisfied"/>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td></tr>
|
||
<tr><td style="padding:15px 20px 10px 20px;">${(object.user_id.signature or '')| safe}</td></tr>
|
||
</tbody>
|
||
</table>
|
||
<table style="width:600px;margin:auto;text-align:center;font-size:12px;">
|
||
<tbody>
|
||
<tr><td style="padding-top:10px;color:#afafaf;">
|
||
% if object.project_id.rating_status == 'stage':
|
||
<p>This customer survey has been sent because your task has been moved to the stage <b>${object.stage_id.name}</b></p>
|
||
% endif
|
||
% if object.project_id.rating_status == 'periodic':
|
||
<p>This customer survey is sent <b>${object.project_id.rating_status_period}</b> as long as the task is in the <b>${object.stage_id.name}</b> stage.</p>
|
||
% endif
|
||
<p>Email automatically sent by <a target="_blank" href="https://www.odoo.com/page/project-management" style="color:#875A7B;text-decoration:none;">Odoo Project</a> for <a href="${object.project_id.company_id.website}" style="color:#875A7B;text-decoration:none;">${object.project_id.company_id.name}</a></p>
|
||
</td></tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
]]></field>
|
||
</record>
|
||
</data>
|
||
</odoo>
|