You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
2.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Email template -->
<data noupdate="1">
<record id="overdue_task_email_template" model="mail.template">
<field name="name">Project Task Overdue: Send by email</field>
<field name="model_id" ref="task_overdue_email_odoo.model_project_task"/>
<field name="subject">Task Overdue Notification</field>
<field name="email_to">{{ ctx.get('user_email') }}</field>
<field name="body_html" type="html">
<html>
Dear Employee
<t t-esc="ctx.get('user_name')"/>
<head>Overdue Task List</head>
<table border="1" style="width:100%">
<thead style="background-color: rgb(255, 0, 149);">
<tr>
<th align="center">Project</th>
<th align="center">Task</th>
<th align="center">Deadline Date</th>
</tr>
</thead>
<tbody>
<t t-foreach="ctx.get('recipient_list')" t-as="recipient">
<tr>
<td>
<t t-esc="recipient[0]"/>
</td>
<td>
<t t-esc="recipient[1]"/>
</td>
<td>
<t t-esc="ctx.get('task_deadline')"/>
</td>
</tr>
</t>
</tbody>
</table>
<br/>
<p>Thank you</p>
</html>
</field>
</record>
</data>
</odoo>