Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][IMP]helpdesk_mgmt: add 'Created Ticket' email template #659

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading