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.
90 lines
5.7 KiB
90 lines
5.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="1">
|
|
<record id="orientation_request_mailer" model="mail.template">
|
|
<field name="name">Employee Orientation Request</field>
|
|
<field name="email_from">${(object.user_id.email or object.company_id.email)|safe}</field>
|
|
<field name="email_to">${(object.partner_id.email)}</field>
|
|
<field name="subject">Employee Orientation Request</field>
|
|
<field name="model_id" ref="employee_orientation.model_orientation_request" />
|
|
<field name="auto_delete" eval="True" />
|
|
<field name="body_html"><![CDATA[
|
|
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
|
<p>Hello ${object.partner_id.name},</p>
|
|
<p>You are requested to conduct orientation program listed below.</p>
|
|
<p>Check Line: ${object.request_name}</p>
|
|
<p>Employee: ${object.employee_id.name}</p>
|
|
%if object.request_expected_date:
|
|
<p>Expected Date: ${object.request_expected_date}</p>
|
|
% endif
|
|
<br/>
|
|
<p>Thank you!</p>
|
|
<br/>
|
|
<div style="width: 375px; margin: 0px; padding: 0px; background-color: #8E0000; border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; background-repeat: repeat no-repeat;">
|
|
<h3 style="margin: 0px; padding: 2px 14px; font-size: 12px; color: #DDD;">
|
|
<strong style="text-transform:uppercase;">${object.company_id.name}</strong></h3>
|
|
</div>
|
|
<div style="width: 347px; margin: 0px; padding: 5px 14px; line-height: 16px; background-color: #F2F2F2;">
|
|
<span style="color: #222; margin-bottom: 5px; display: block; ">
|
|
${object.company_id.partner_id.sudo().with_context(show_address=True, html_format=True).name_get()[0][1] | safe}
|
|
</span>
|
|
% if object.company_id.phone:
|
|
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
|
|
Phone: ${object.company_id.phone}
|
|
</div>
|
|
% endif
|
|
% if object.company_id.website:
|
|
<div>
|
|
Web : <a href="${object.company_id.website}">${object.company_id.website}</a>
|
|
</div>
|
|
%endif
|
|
<p></p>
|
|
</div>
|
|
</div>
|
|
]]>
|
|
</field>
|
|
</record>
|
|
<record id="orientation_training_mailer" model="mail.template">
|
|
<field name="name">Employee Training program</field>
|
|
<field name="email_from">${(object.user_id.email or object.company_id.email)}</field>
|
|
<field name="email_to">${(object.program_convener.email)|safe}</field>
|
|
<field name="subject">Employee Training Request</field>
|
|
<field name="model_id" ref="employee_orientation.model_employee_training" />
|
|
<field name="auto_delete" eval="True" />
|
|
<field name="body_html"><![CDATA[
|
|
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
|
<p>Hello ${object.program_convener.name},</p>
|
|
<p>You are requested to conduct ${object.program_name} Training program for ${object.program_department.name} department
|
|
% if object.from_date and object.to_date:
|
|
from ${object.from_date} to ${object.to_date}
|
|
% endif
|
|
.</p>
|
|
<br/>
|
|
<p>Thank you!</p>
|
|
<br/>
|
|
<div style="width: 375px; margin: 0px; padding: 0px; background-color: #8E0000; border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; background-repeat: repeat no-repeat;">
|
|
<h3 style="margin: 0px; padding: 2px 14px; font-size: 12px; color: #DDD;">
|
|
<strong style="text-transform:uppercase;">${object.company_id.name}</strong></h3>
|
|
</div>
|
|
<div style="width: 347px; margin: 0px; padding: 5px 14px; line-height: 16px; background-color: #F2F2F2;">
|
|
<span style="color: #222; margin-bottom: 5px; display: block; ">
|
|
${object.company_id.partner_id.sudo().with_context(show_address=True, html_format=True).name_get()[0][1] | safe}
|
|
</span>
|
|
% if object.company_id.phone:
|
|
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
|
|
Phone: ${object.company_id.phone}
|
|
</div>
|
|
% endif
|
|
% if object.company_id.website:
|
|
<div>
|
|
Web : <a href="${object.company_id.website}">${object.company_id.website}</a>
|
|
</div>
|
|
%endif
|
|
<p></p>
|
|
</div>
|
|
</div>
|
|
]]>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|