mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-08-17 16:54:42 -05:00
[2.0][FIX]: Fixed email template design and content
This commit is contained in:
@@ -1,35 +1,137 @@
|
||||
<?xml version="1.0" ?>
|
||||
<flectra>
|
||||
<!--Email template -->
|
||||
<record id="ticket_mail_template" model="mail.template">
|
||||
<field name="name">Helpdesk Ticket : Send By Email</field>
|
||||
<field name="subject">Ticket Receive Mail</field>
|
||||
<field name="email_from">${(object.user_id.email_formatted or user.email_formatted) | safe}</field>
|
||||
<field name="email_to">${(object.partner_email if not object.sudo().partner_id.email or object.sudo().partner_id.email != object.partner_email else '') | safe}</field>
|
||||
<field name="partner_to">${object.partner_id.id if object.sudo().partner_id.email and object.sudo().partner_id.email == object.partner_email else ''}</field>
|
||||
<field name="model_id" ref="helpdesk_basic.model_helpdesk_ticket"/>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<h2>Dear
|
||||
% if object.partner_id:
|
||||
${object.partner_id.name}
|
||||
% elif not object.partner_id and object.user_id:
|
||||
${object.user_id.name}
|
||||
% else:
|
||||
${user.name}
|
||||
% endif
|
||||
</h2>
|
||||
<p>Your request has been received and is being reviewed by our ${object.team_id.name}.<br/><br/>
|
||||
<div style="margin-top: 20px;">
|
||||
<a href="/my/ticket/${object.id}"
|
||||
target="_blank"
|
||||
style="background-color:#2496f6; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px;">
|
||||
View Ticket
|
||||
</a>
|
||||
</div><br/>
|
||||
Thank you,<br/><br/>
|
||||
${object.team_id.name}</p>
|
||||
</div>
|
||||
<!--Email template -->
|
||||
<record id="ticket_mail_template" model="mail.template">
|
||||
<field name="name">Helpdesk Ticket : Send By Email</field>
|
||||
<field name="subject">Ticket Receive Mail</field>
|
||||
<field name="email_from">${(object.user_id.email_formatted or user.email_formatted) | safe}</field>
|
||||
<field name="email_to">${(object.partner_email if not object.sudo().partner_id.email or object.sudo().partner_id.email != object.partner_email else '') | safe}</field>
|
||||
<field name="partner_to">${object.partner_id.id if object.sudo().partner_id.email and object.sudo().partner_id.email == object.partner_email else ''}</field>
|
||||
<field name="model_id" ref="helpdesk_basic.model_helpdesk_ticket"/>
|
||||
<field name="body_html" type="html">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="helpdesk_ticket_email"
|
||||
style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<span style="font-size: 10px;"/>
|
||||
<br/>
|
||||
</td>
|
||||
<td valign="middle" align="right">
|
||||
<img src="/logo.png?company=${object.company_id.id}"
|
||||
style="padding: 0px; margin: 0px; height: auto; width: 80px;"
|
||||
alt="${object.company_id.name}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:center;">
|
||||
<hr width="100%"
|
||||
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:16px 0px 16px 0px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="top" style="font-size: 13px;">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p>Dear
|
||||
% if object.partner_id:
|
||||
${object.partner_id.name},
|
||||
% elif not object.partner_id and object.user_id:
|
||||
${object.user_id.name},
|
||||
% else:
|
||||
${user.name},
|
||||
% endif
|
||||
</p>
|
||||
<p>
|
||||
your request has been successfully submitted
|
||||
to a
|
||||
company and is currently being reviewed by
|
||||
${object.team_id.name}.
|
||||
This review process may take some time.
|
||||
</p>
|
||||
<p>
|
||||
Once the review is complete, you can expect to receive a
|
||||
response from the team,
|
||||
which may include additional information or a resolution
|
||||
to your request.
|
||||
</p>
|
||||
<p>
|
||||
Click on following button for more detail about ticket.
|
||||
<div style="margin-top: 20px;">
|
||||
<a href="/my/ticket/${object.id}"
|
||||
target="_blank"
|
||||
class="btn btn-primary">
|
||||
View Ticket
|
||||
</a>
|
||||
</div>
|
||||
<br/>
|
||||
Thank you,
|
||||
<br/>
|
||||
<br/>
|
||||
${object.team_id.name}
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">
|
||||
<hr width="100%"
|
||||
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="middle" align="left">
|
||||
${object.company_id.name}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle" align="left" style="opacity: 0.7;">
|
||||
${object.company_id.phone}
|
||||
% if object.company_id.email
|
||||
|
|
||||
<a href="'mailto:%s' % ${object.company_id.email}"
|
||||
style="text-decoration:none; color: #454748;">
|
||||
${object.company_id.email}
|
||||
</a>
|
||||
% endif
|
||||
% if object.company_id.website
|
||||
|
|
||||
<a href="'%s' % ${object.company_id.website}"
|
||||
style="text-decoration:none; color: #454748;">
|
||||
${object.company_id.website}
|
||||
</a>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -41,26 +143,125 @@
|
||||
<field name="partner_to">${object.partner_id.id if object.sudo().partner_id.email and object.sudo().partner_id.email == object.partner_email else ''}</field>
|
||||
<field name="model_id" ref="helpdesk_basic.model_helpdesk_ticket"/>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<h2>Dear
|
||||
% if object.partner_id:
|
||||
${object.partner_id.name}
|
||||
% elif not object.partner_id and object.user_id:
|
||||
${object.user_id.name}
|
||||
% else:
|
||||
${user.name}
|
||||
% endif
|
||||
</h2>
|
||||
<p>Your request flectra has been Confirm by our ${object.team_id.name}.<br/><br/>
|
||||
<div style="margin-top: 20px;">
|
||||
<a href="/my/ticket/${object.id}"
|
||||
target="_blank"
|
||||
style="background-color:#2496f6; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px;">
|
||||
View Ticket
|
||||
</a></div><br/>
|
||||
Thank you,<br/><br/>
|
||||
${object.team_id.name}</p>
|
||||
</div>
|
||||
<table border="0" cellpadding="0" cellspacing="0"
|
||||
style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<span style="font-size: 10px;"/>
|
||||
<br/>
|
||||
</td>
|
||||
<td valign="middle" align="right">
|
||||
<img src="/logo.png?company=${object.company_id.id}"
|
||||
style="padding: 0px; margin: 0px; height: auto; width: 80px;"
|
||||
alt="${object.company_id.name}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:center;">
|
||||
<hr width="100%"
|
||||
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:16px 0px 16px 0px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="top" style="font-size: 13px;">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p>Dear
|
||||
% if object.partner_id:
|
||||
${object.partner_id.name},
|
||||
% elif not object.partner_id and object.user_id:
|
||||
${object.user_id.name},
|
||||
% else:
|
||||
${user.name},
|
||||
% endif
|
||||
</p>
|
||||
<p>
|
||||
Your request flectra has been resolved by our
|
||||
${object.team_id.name}.
|
||||
</p>
|
||||
<p>
|
||||
If you have any further questions, you may want
|
||||
to reach out to the company's customer service team or
|
||||
support channels for more information.
|
||||
</p>
|
||||
<p>
|
||||
Click on following button for more detail about ticket.
|
||||
<div style="margin-top: 20px;">
|
||||
<a href="/my/ticket/${object.id}"
|
||||
target="_blank"
|
||||
class="btn btn-primary">
|
||||
View Ticket
|
||||
</a>
|
||||
</div>
|
||||
<br/>
|
||||
Thank you,
|
||||
<br/>
|
||||
<br/>
|
||||
${object.team_id.name}
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">
|
||||
<hr width="100%"
|
||||
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="middle" align="left">
|
||||
${object.company_id.name}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle" align="left" style="opacity: 0.7;">
|
||||
${object.company_id.phone}
|
||||
% if object.company_id.email
|
||||
|
|
||||
<a href="'mailto:%s' % ${object.company_id.email}"
|
||||
style="text-decoration:none; color: #454748;">
|
||||
${object.company_id.email}
|
||||
</a>
|
||||
% endif
|
||||
% if object.company_id.website
|
||||
|
|
||||
<a href="'%s' % ${object.company_id.website}"
|
||||
style="text-decoration:none; color: #454748;">
|
||||
${object.company_id.website}
|
||||
</a>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -72,40 +273,146 @@
|
||||
<field name="partner_to">${object.partner_id.id if object.sudo().partner_id.email and object.sudo().partner_id.email == object.partner_email else ''}</field>
|
||||
<field name="model_id" ref="helpdesk_basic.model_helpdesk_ticket"/>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
|
||||
<p>Please take a moment to rate our services related to the ticket ${object.name}.<br/>
|
||||
<tr><td style="text-align: center;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" summary="o_mail_notification" style="width:100%; margin: 32px 0px 32px 0px;">
|
||||
<tr><td style="font-size: 14px;">
|
||||
<strong>Tell us how you feel about our service</strong><br/>
|
||||
<span style="text-color: #888888">(click on one of these smileys)</span>
|
||||
</td></tr>
|
||||
<tr><td style="font-size: 14px;">
|
||||
<table style="width:100%;text-align:center;">
|
||||
<table border="0" cellpadding="0" cellspacing="0"
|
||||
style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/rate/${object.access_token}/5">
|
||||
<img alt="Satisfied" src="/rating/static/src/img/rating_5.png" title="Satisfied"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/rate/${object.access_token}/3">
|
||||
<img alt="Not satisfied" src="/rating/static/src/img/rating_3.png" title="Not satisfied"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/rate/${object.access_token}/1">
|
||||
<img alt="Highly Dissatisfied" src="/rating/static/src/img/rating_1.png" title="Highly Dissatisfied"/>
|
||||
</a>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<span style="font-size: 10px;"/>
|
||||
<br/>
|
||||
</td>
|
||||
<td valign="middle" align="right">
|
||||
<img src="/logo.png?company=${object.company_id.id}"
|
||||
style="padding: 0px; margin: 0px; height: auto; width: 80px;"
|
||||
alt="${object.company_id.name}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:center;">
|
||||
<hr width="100%"
|
||||
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:16px 0px 16px 0px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
We appreciate your feedback. It helps us to improve continuously.</p>
|
||||
</div>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="top" style="font-size: 13px;">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p>Please take a moment to rate our services related to the
|
||||
ticket ${object.name}.
|
||||
<br/>
|
||||
<tr>
|
||||
<td style="text-align: center;">
|
||||
<table border="0" cellpadding="0" cellspacing="0"
|
||||
summary="o_mail_notification"
|
||||
style="width:100%; margin: 32px 0px 32px 0px;">
|
||||
<tr>
|
||||
<td style="font-size: 14px;">
|
||||
<strong>Tell us how you feel about our
|
||||
service
|
||||
</strong>
|
||||
<br/>
|
||||
<span style="text-color: #888888">(click
|
||||
on one of these smileys)
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 14px;">
|
||||
<table style="width:100%;text-align:center;">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/rate/${object.access_token}/5">
|
||||
<img alt="Satisfied"
|
||||
src="/rating/static/src/img/rating_5.png"
|
||||
title="Satisfied"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/rate/${object.access_token}/3">
|
||||
<img alt="Not satisfied"
|
||||
src="/rating/static/src/img/rating_3.png"
|
||||
title="Not satisfied"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/rate/${object.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>
|
||||
We appreciate your feedback. It helps us to improve
|
||||
continuously.
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">
|
||||
<hr width="100%"
|
||||
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="min-width: 590px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
||||
<tr>
|
||||
<td valign="middle" align="left">
|
||||
${object.company_id.name}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle" align="left" style="opacity: 0.7;">
|
||||
${object.company_id.phone}
|
||||
% if object.company_id.email
|
||||
|
|
||||
<a href="'mailto:%s' % ${object.company_id.email}"
|
||||
style="text-decoration:none; color: #454748;">
|
||||
${object.company_id.email}
|
||||
</a>
|
||||
% endif
|
||||
% if object.company_id.website
|
||||
|
|
||||
<a href="'%s' % ${object.company_id.website}"
|
||||
style="text-decoration:none; color: #454748;">
|
||||
${object.company_id.website}
|
||||
</a>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</field>
|
||||
</record>
|
||||
</flectra>
|
||||
|
||||
Reference in New Issue
Block a user