-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from onesteinbv/16.0-add-helpdesk_modules
Added helpdesk_mgmt_email,helpdesk_mgmt_fetchmail_multicompany and helpdesk_ticket_custom_priority modules
- Loading branch information
Showing
24 changed files
with
929 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Helpdesk Mail", | ||
"summary": "Adds the option to send out helpdesk ticket updates to contacts by email.", | ||
"version": "16.0.1.0.0", | ||
"license": "AGPL-3", | ||
"category": "After-Sales", | ||
"author": "Onestein BV", | ||
"website": "https://www.onestein.eu", | ||
"depends": ["helpdesk_mgmt", "base_automation", "mail_layout_force"], | ||
"data": [ | ||
"data/mail_template.xml", | ||
"data/automated_action.xml", | ||
"views/helpdesk_ticket_team_view.xml", | ||
"views/helpdesk_ticket_view.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="automated_action_on_ticket_creation" model="base.automation"> | ||
<field name="name">Email on helpdesk ticket creation</field> | ||
<field name="model_id" ref="helpdesk_mgmt.model_helpdesk_ticket" /> | ||
<field name="state">mail_post</field> | ||
<field name="trigger">on_create</field> | ||
<field name="mail_post_method">comment</field> | ||
<field name="active" eval="True" /> | ||
<field name="template_id" ref="helpdesk_mgmt_email.helpdesk_ticket_created_email_template" /> | ||
<field | ||
name="filter_domain" | ||
eval="['|',('partner_id', '!=', False),('partner_email', '!=', False)]" | ||
/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="helpdesk_ticket_created_email_template" model="mail.template"> | ||
<field name="name">Support Ticket Number</field> | ||
<field name="model_id" ref="helpdesk_mgmt.model_helpdesk_ticket" /> | ||
<field name="force_email_layout_id" ref="mail_layout_force.mail_layout_noop" /> | ||
<field name="email_from">{{ object.team_id.email or object.company_id.partner_id.email or ''}}</field> | ||
<field | ||
name="email_to" | ||
>{{not object.partner_id and object.partner_email or ''}}</field> | ||
<field name="partner_to">{{object.partner_id.id}}</field> | ||
<field name="reply_to">{{ object.team_id.email or object.company_id.partner_id.email or ''}}</field> | ||
<field | ||
name="lang" | ||
>{{ object.partner_id.lang or ctx.get("lang") or object.company_id.partner_id.lang or object.env.user.lang }}</field> | ||
<field name="subject">Ticket {{object.number or 'n/a' }}: {{object.name or '' }}</field> | ||
<field name="body_html" type="html"> | ||
<div>Dear <t t-out="object.partner_id.name or object.partner_name or ''" /> | ||
<br /> | ||
<br /> | ||
<p> | ||
Thank you for your report. Your report has been registered under ticket <t t-out="object.name" /> and is being processed. | ||
</p> | ||
<p>If there are any questions or uncertainties, please let us know.</p> | ||
Kind regards, | ||
<br/> | ||
<div style="font-family:Helvetica, Arial;font-size: 12pt; color: #000000;"> | ||
<table style="font-family:Helvetica, Arial;border-spacing:0px;" cellspacing="0" cellpadding="0" | ||
border="0"> | ||
<tbody> | ||
<tr> | ||
<td style="font-family:Helvetica, Arial;border-right: 4px solid #1c355e; padding-right: 8px;" | ||
rowspan="6"> | ||
<span style="font-family: georgia, serif;"> | ||
<a t-att-href="object.company_id.website or ''" target="_blank" rel="noopener" | ||
style="text-decoration:none;"> | ||
<img t-attf-src="/logo.png?company={{ object.company_id.id }}" | ||
t-att-alt="object.company_id.name" | ||
style="border-image-width:1;border-image-source:none;border-image-slice:100%;border-image-repeat:stretch;border-image-outset:0;border-right-style:none;border-right-color:currentcolor;border-bottom-style:none;border-bottom-color:currentcolor;border-left-style:none;border-left-color:currentcolor;border-top-style:none;border-top-color:currentcolor;height: 100%; width: 100%; object-fit: contain;" | ||
data-original-title="" title=""/> | ||
</a> | ||
</span> | ||
</td> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"> | ||
<span style="font-family: georgia, serif; font-size: 14pt;"> | ||
<strong> | ||
<span style="font-family:Helvetica, Arial;color: rgb(28, 53, 94);"> | ||
<t t-out="object.company_id.name" /> Support | ||
</span> | ||
</strong> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"> | ||
<span style="font-family: georgia, serif;"> | ||
<strong>  </strong> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"> | ||
<div style="font-family:Helvetica, Arial;"> | ||
<span style="font-family: georgia, serif;">  </span> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<t t-if="object.company_id.phone or object.company_id.mobile"> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"><b>T</b>:  <t t-out="object.company_id.phone or object.company_id.mobile"/> | ||
</td> | ||
</t> | ||
</tr> | ||
<tr> | ||
<t t-if="object.company_id.street or object.company_id.city or object.company_id.zip"> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"><b>A</b>:   | ||
<t t-if="object.company_id.street"><t t-out="object.company_id.street"/></t> | ||
<t t-if="object.company_id.street and (object.company_id.city or object.company_id.zip)"> | ||
| | ||
</t> | ||
<t t-if="object.company_id.zip"><t t-out="object.company_id.zip"/></t> | ||
<t t-if="object.company_id.zip and object.company_id.city"> </t> | ||
<t t-if="object.company_id.city"><t t-out="object.company_id.city"/></t> | ||
</td> | ||
</t> | ||
</tr> | ||
<tr> | ||
<t t-if="object.company_id.website"> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"><b>W</b>:  <a | ||
t-att-href="object.company_id.website" target="_blank" data-original-title="" title="" | ||
style="text-decoration:none;"><t t-out="object.company_id.website"/> | ||
</a> | ||
</td> | ||
</t> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<br /> | ||
<p> | ||
This e-mail is intended for the addressee’s eyes only. If you are not the intended recipient, you are hereby kindly requested to inform the sender of this. In view of the electronic nature of this communication, <t t-out="object.company_id.name" /> is neither liable for the proper and complete transmission of the information contained therein nor for any delay in its receipt. For information about <t t-out="object.company_id.name" /> | ||
<t t-if="object.company_id.website"> | ||
,direct your browser to <t t-out="object.company_id.website" /> | ||
</t> | ||
</p> | ||
</div> | ||
</field> | ||
</record> | ||
|
||
<record id="helpdesk_ticket_draft_email_template" model="mail.template"> | ||
<field name="name">Support</field> | ||
<field name="model_id" ref="helpdesk_mgmt.model_helpdesk_ticket" /> | ||
<field name="force_email_layout_id" ref="mail_layout_force.mail_layout_noop" /> | ||
<field name="email_from">{{ object.team_id.email or object.company_id.partner_id.email or ''}}</field> | ||
<field | ||
name="email_to" | ||
>{{not object.partner_id and object.partner_email or ''}}</field> | ||
<field name="partner_to">{{object.partner_id.id}}</field> | ||
<field name="reply_to">{{ object.team_id.email or object.company_id.partner_id.email or ''}}</field> | ||
<field | ||
name="lang" | ||
>{{ object.partner_id.lang or ctx.get("lang") or object.company_id.partner_id.lang or object.env.user.lang }}</field> | ||
<field name="subject">Ticket {{object.number or 'n/a' }}: {{object.name or '' }}</field> | ||
<field name="body_html" type="html"> | ||
<div>Dear <t t-out="object.partner_id.name or object.partner_name or ''" /> | ||
<br /> | ||
<br /> | ||
Kind regards, | ||
<br/> | ||
<div style="font-family:Helvetica, Arial;font-size: 12pt; color: #000000;"> | ||
<table style="font-family:Helvetica, Arial;border-spacing:0px;" cellspacing="0" cellpadding="0" | ||
border="0"> | ||
<tbody> | ||
<tr> | ||
<td style="font-family:Helvetica, Arial;border-right: 4px solid #1c355e; padding-right: 8px;" | ||
rowspan="6"> | ||
<span style="font-family: georgia, serif;"> | ||
<a t-att-href="object.company_id.website or ''" target="_blank" rel="noopener" | ||
style="text-decoration:none;"> | ||
<img t-attf-src="/logo.png?company={{ object.company_id.id }}" | ||
t-att-alt="object.company_id.name" | ||
style="border-image-width:1;border-image-source:none;border-image-slice:100%;border-image-repeat:stretch;border-image-outset:0;border-right-style:none;border-right-color:currentcolor;border-bottom-style:none;border-bottom-color:currentcolor;border-left-style:none;border-left-color:currentcolor;border-top-style:none;border-top-color:currentcolor;height: 100%; width: 100%; object-fit: contain;" | ||
data-original-title="" title=""/> | ||
</a> | ||
</span> | ||
</td> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"> | ||
<span style="font-family: georgia, serif; font-size: 14pt;"> | ||
<strong> | ||
<span style="font-family:Helvetica, Arial;color: rgb(28, 53, 94);"> | ||
<t t-out="object.company_id.name" /> Support | ||
</span> | ||
</strong> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"> | ||
<span style="font-family: georgia, serif;"> | ||
<strong>  </strong> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"> | ||
<div style="font-family:Helvetica, Arial;"> | ||
<span style="font-family: georgia, serif;">  </span> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<t t-if="object.company_id.phone or object.company_id.mobile"> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"><b>T</b>:  <t t-out="object.company_id.phone or object.company_id.mobile"/> | ||
</td> | ||
</t> | ||
</tr> | ||
<tr> | ||
<t t-if="object.company_id.street or object.company_id.city or object.company_id.zip"> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"><b>A</b>:   | ||
<t t-if="object.company_id.street"><t t-out="object.company_id.street"/></t> | ||
<t t-if="object.company_id.street and (object.company_id.city or object.company_id.zip)"> | ||
| | ||
</t> | ||
<t t-if="object.company_id.zip"><t t-out="object.company_id.zip"/></t> | ||
<t t-if="object.company_id.zip and object.company_id.city"> </t> | ||
<t t-if="object.company_id.city"><t t-out="object.company_id.city"/></t> | ||
</td> | ||
</t> | ||
</tr> | ||
<tr> | ||
<t t-if="object.company_id.website"> | ||
<td style="font-family:Helvetica, Arial;padding-left: 8px;"><b>W</b>:  <a | ||
t-att-href="object.company_id.website" target="_blank" data-original-title="" title="" | ||
style="text-decoration:none;"><t t-out="object.company_id.website"/> | ||
</a> | ||
</td> | ||
</t> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<br /> | ||
<p> | ||
This e-mail is intended for the addressee’s eyes only. If you are not the intended recipient, you are hereby kindly requested to inform the sender of this. In view of the electronic nature of this communication, <t t-out="object.company_id.name" /> is neither liable for the proper and complete transmission of the information contained therein nor for any delay in its receipt. For information about <t t-out="object.company_id.name" /> | ||
<t t-if="object.company_id.website"> | ||
,direct your browser to <t t-out="object.company_id.website" /> | ||
</t> | ||
</p> | ||
</div> | ||
</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.