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.
 
 
 
 
 

116 lines
5.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<!-- document expiry notification template for customers -->
<record id="document_expire_notification_to_customer"
model="mail.template">
<field name="name">Document Expire Notification</field>
<field name="model_id"
ref="advanced_project_management_system.model_ir_attachment"/>
<field name="auto_delete" eval="True"/>
<field name="email_from">{{object.company_id.email}}</field>
<field name="email_to">{{object.partner_id.email}}</field>
<field name="subject">Document Expiry Notification for
{{object.name}}
</field>
<field name="body_html" type="html">
<p>
Dear Mr/Ms<t t-out="object.partner_id.name"/>,
<br/>
Your document
<strong>
<t t-out="object.name"/>
</strong>
is expiring on
<strong>
<t t-out="object.expiry_date"/>
</strong>
<div style="margin: 16px 0px 16px 0px;">
<a t-attf-href="{{ object.get_base_url() }}/web#id={{object.id}}&amp;cids=1&amp;model=ir.attachment&amp;view_type=form"
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
View Document
</a>
</div>
Thank you
</p>
</field>
</record>
<!-- document expiry notification email template to team-->
<record id="document_expire_notification_mail_template"
model="mail.template">
<field name="name">Document Expire Notification</field>
<field name="model_id"
ref="advanced_project_management_system.model_ir_attachment"/>
<field name="auto_delete" eval="True"/>
<field name="email_from">{{object.company_id.email}}</field>
<field name="email_to">{{object.document_email_to}}</field>
<field name="subject">Document Expiry Notification for
{{object.name}}
</field>
<field name="body_html" type="html">
<p>
Hi Team,
<br/>
The document
<strong>
<t t-out="object.name"/>
</strong>
is expiring on
<strong>
<t t-out="object.expiry_date"/>
</strong>
<div style="margin: 16px 0px 16px 0px;">
<a t-attf-href="{{ object.get_base_url() }}/web#id={{object.id}}&amp;cids=1&amp;model=ir.attachment&amp;view_type=form"
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
View Document
</a>
</div>
Thank you
</p>
</field>
</record>
<!-- Task due email notification template -->
<record id="task_due_email_notification"
model="mail.template">
<field name="name">Task due Notification</field>
<field name="model_id"
ref="advanced_project_management_system.model_project_task"/>
<field name="auto_delete" eval="True"/>
<field name="email_from">{{object.company_id.email}}</field>
<field name="email_to">{{object._get_user_emails()}}</field>
<field name="subject">Task Overdue notification
</field>
<field name="body_html" type="html">
<p>
Dear Employee
<br/>
Your overdue tasklist are
<table class="table">
<thead>
<tr>
<th>Project</th>
<th>Task</th>
<th>Deadline Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<t t-out="object.project_id.name"/>
</td>
<td>
<t t-out="object.name"/>
</td>
<td>
<t t-out="object.date_deadline"/>
</td>
</tr>
</tbody>
</table>
Thank you
</p>
</field>
</record>
</data>
</odoo>