Skip to content

Commit

Permalink
[IMP]helpdesk_mgmt: add 'Created Ticket' email template
Browse files Browse the repository at this point in the history
  • Loading branch information
PicchiSeba committed Dec 2, 2024
1 parent de3d523 commit 2f9d072
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions helpdesk_mgmt/data/helpdesk_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,41 @@
</table>
</field>
</record>

<record id="created_ticket_template" model="mail.template">
<field name="name">Helpdesk Created Ticket Notification Email</field>
<field name="model_id" ref="helpdesk_mgmt.model_helpdesk_ticket" />
<field name="email_from">{{object.company_id.partner_id.email}}</field>
<field
name="email_to"
>{{not object.partner_id and object.partner_email or ''}}</field>
<field name="subject">The ticket {{object.number}} has been created.</field>
<field name="partner_to">{{object.partner_id.id}}</field>
<field name="auto_delete" eval="False" />
<field name="lang">{{object.partner_id.lang}}</field>
<field name="body_html" type="html">
<div>
<p>Hello <t t-out="object.partner_id.name or ''" />,</p>
<p>The ticket <t
t-out="object.number or 'n/a'"
/> has been created.</p>
<p>You can reply to this email to add information to the ticket.</p>
<t t-if="object.partner_can_access()">
<div style="margin: 16px 0px 16px 0px;">
<a
t-attf-href="{{object.get_access_link()}}"
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;"
>
View Ticket
</a>
</div>
</t>
Thank you,<br /><br />
<t t-out="user.signature" /><br />
</div>
</field>
</record>

<!-- Sequence -->
<record id="helpdesk_ticket_sequence" model="ir.sequence">
<field name="name">Helpdesk Ticket Sequence</field>
Expand Down

0 comments on commit 2f9d072

Please sign in to comment.