summaryrefslogtreecommitdiff
path: root/sh_helpdesk/data/helpdesk_reminder_mail_template.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /sh_helpdesk/data/helpdesk_reminder_mail_template.xml
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'sh_helpdesk/data/helpdesk_reminder_mail_template.xml')
-rw-r--r--sh_helpdesk/data/helpdesk_reminder_mail_template.xml187
1 files changed, 187 insertions, 0 deletions
diff --git a/sh_helpdesk/data/helpdesk_reminder_mail_template.xml b/sh_helpdesk/data/helpdesk_reminder_mail_template.xml
new file mode 100644
index 0000000..fe5c9e7
--- /dev/null
+++ b/sh_helpdesk/data/helpdesk_reminder_mail_template.xml
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<odoo>
+ <data noupdate="1">
+ <record id="sh_ticket_reminder_mail_template" model="mail.template">
+ <field name="name">Ticket Reminder</field>
+ <field name="model_id" ref="sh_helpdesk.model_helpdesk_ticket" />
+ <field name="email_from">${object.company_id.partner_id.email_formatted |safe}</field>
+ <field name="subject">${object.company_id.name} Ticket Reminder(Ref ${object.name or 'n/a' })</field>
+ <field name="auto_delete" eval="False" />
+ <field name="body_html" type="html">
+ <div style="margin: 0px; padding: 0px;">
+ <table border="0" width="100%" cellpadding="0" bgcolor="#ededed" style="padding: 20px; background-color: #ededed; border-collapse:separate;" summary="o_mail_notification">
+ <tbody>
+
+ <!-- HEADER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table width="590" border="0" cellpadding="0" bgcolor="#875A7B" style="min-width: 590px; background-color: rgb(135,90,123); padding: 20px; border-collapse:separate;">
+ <tr>
+ <td valign="middle">
+ <span style="font-size:20px; color:white; font-weight: bold;">
+ <strong>Ticket Remainder (${object.name})</strong>
+ </span>
+ </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>
+ </table>
+ </td>
+ </tr>
+
+ <!-- CONTENT -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table width="590" border="0" cellpadding="0" bgcolor="#ffffff" style="min-width: 590px; background-color: rgb(255, 255, 255); padding: 20px; border-collapse:separate;">
+ <tbody>
+ <td valign="top" style="font-family:Arial,Helvetica,sans-serif; color: #555; font-size: 14px;">
+ <p style="margin: 0px; padding: 0px; font-size: 13px;">
+ <div class="predefined"></div>
+
+ <h2>Ticket Information</h2>
+ <strong>Ticket :</strong>
+ ${object.name}
+ <br />
+ <br />
+ <strong>Create Date :</strong>
+ ${object.create_date}
+ <br />
+ <br />
+ <strong>Due Date : </strong>
+ ${object.sh_due_date}
+ <br />
+ <br />
+ % if object.subject_id:
+ <strong>Subject : </strong>
+ ${object.subject_id.name}
+ <br />
+ <br />
+ % endif
+ % if object.ticket_type:
+ <strong>Type : </strong>
+ ${object.ticket_type.name}
+ <br />
+ <br />
+ % endif
+ % if object.category_id:
+ <strong>Category : </strong>
+ ${object.category_id.name}
+ <br />
+ <br />
+ % endif
+ % if object.sub_category_id:
+ <strong>Sub Category : </strong>
+ ${object.sub_category_id.name}
+ <br />
+ <br />
+ % endif
+ % if object.priority:
+ <strong>Priority : </strong>
+ ${object.priority.name}
+ <br />
+ <br />
+ % endif
+ % if object.team_id:
+ <strong>Team : </strong>
+ ${object.team_id.name}
+ <br />
+ <br />
+ % endif
+ % if object.team_head:
+ <strong>Team Head : </strong>
+ ${object.team_head.name}
+ <br />
+ <br />
+ % endif
+ % if object.user_id:
+ <strong>Assigned To : </strong>
+ ${object.user_id.name}
+ <br />
+ <br />
+ % endif
+ % if object.sh_user_ids:
+ <strong>Assign Multi Users :</strong>
+ % for row in object.sh_user_ids :
+ <span class="badge badge-info" style="padding-right:5px">
+ ${row.name}
+ </span>
+ %endfor
+ <br />
+ <br />
+ % endif
+ % if object.tag_ids:
+ <strong>Tags :</strong>
+ % for row in object.tag_ids :
+ <span class="badge badge-info" style="padding-right:5px">
+ ${row.name}
+ </span>
+ %endfor
+ <br />
+ <br />
+ % endif
+ % if object.product_ids:
+ <strong>Products :</strong>
+ % for row in object.product_ids:
+ <span class="badge badge-info" style="padding-right:5px">
+ ${row.name_get()[0][1]}
+ </span>
+ %endfor
+ <br />
+ <br />
+ % endif
+ <strong>Partner : </strong>
+ ${object.partner_id.name}
+ <br />
+ <br />
+ <strong>Person Name : </strong>
+ ${object.person_name}
+ <br />
+ <br />
+ <strong>Email : </strong>
+ ${object.email}
+ <br />
+ <br />
+ <br />
+ <center>
+ <a href="${object.form_url}" style="background-color: #1abc9c; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;" class="o_default_snippet_text">View Ticket</a>
+ </center>
+ </p>
+ </td>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+ <!-- FOOTER -->
+ <tr>
+ <td align="center" style="min-width: 590px;">
+ <table width="590" border="0" cellpadding="0" bgcolor="#875A7B" style="min-width: 590px; background-color: rgb(135,90,123); padding: 20px; border-collapse:separate;">
+ <tr>
+ <td valign="middle" align="left" style="color: #fff; padding-top: 10px; padding-bottom: 10px; font-size: 12px;">
+ ${object.company_id.name}
+ <br />
+ ${object.company_id.phone or ''}
+ </td>
+ <td valign="middle" align="right" style="color: #fff; padding-top: 10px; padding-bottom: 10px; font-size: 12px;">
+ % if object.company_id.email:
+ <a href="mailto:${object.company_id.email}" style="text-decoration:none; color: white;">${object.company_id.email}</a>
+ <br />
+ % endif
+ % if object.company_id.website:
+ <a href="${object.company_id.website}" style="text-decoration:none; color: white;">
+ ${object.company_id.website}
+ </a>
+ % endif
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </field>
+ </record>
+ </data>
+</odoo> \ No newline at end of file