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.
123 lines
6.0 KiB
123 lines
6.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--Mail Template to send when the certificate is expired-->
|
|
<record id="email_template_certificate" model="mail.template">
|
|
<field name="name">Certificate Expiry Mail</field>
|
|
<field name="model_id" ref="model_certificates"/>
|
|
<field name="subject">Certificate Expiry</field>
|
|
<field name="body_html" type="html">
|
|
<div style="margin: 0px; padding: 0px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
<strong>Hello,
|
|
<br/>
|
|
</strong>
|
|
<strong>
|
|
<span t-esc="object.customer_id.name"/>
|
|
Your Certificate Is Expired
|
|
</strong>
|
|
</p>
|
|
</div>
|
|
<br/>
|
|
<table width="100%"
|
|
style="color: #454748; font-size: 12px; border-collapse: collapse;">
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;">
|
|
<h2>
|
|
<t t-esc="object.certificate_number"/>
|
|
</h2>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Certificate</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.name"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Start Date</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.start_date"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Expire Date</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.expire_date"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Certificate Type</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.certificates_types_id.certificate_type"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Issued by</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.issued_company_id.name"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Project</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.project_id.name"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Task</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.task_id.name"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Product</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.product_id.name"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid #636363;">
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>Status</strong>
|
|
</td>
|
|
<td style="width: 150px;border-right: 1px solid #636363;border-left: 1px solid #636363;">
|
|
<strong>
|
|
<t t-esc="object.state"/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|