Files
enterprise-addons/sale_subscription/data/mail_template_data.xml
T

328 lines
21 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Recurrent payment emails -->
<record id="email_payment_close" model="mail.template">
<field name="name">Subscription: Payment Failure</field>
<field name="model_id" ref="sale_subscription.model_sale_order"/>
<field name="subject">Termination of subscription {{ object.client_order_ref or object.name }}</field>
<field name="email_from">{{ (object.user_id.email_formatted or object.company_id.email or user.email_formatted) }}</field>
<field name="email_to" eval="False"/>
<field name="use_default_to" eval="True"/>
<field name="description">Sent to customer to indicate that subscription is automatically terminated</field>
<field name="body_html" type="html">
<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>
<!-- HEADER -->
<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">
<t t-set="company" t-value="object.company_id or object.user_id.company_id or user.company_id"/>
<span style="font-size: 10px;">Your Subscription</span><br/>
<span style="font-size: 20px; font-weight: bold;" t-out="object.name or ''">Office Cleaning Service</span>
</td></tr>
<tr><td valign="middle" align="right" t-if="not company.uses_default_logo">
<img t-attf-src="/logo.png?company={{ company.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="company.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>
<!-- CONTENT -->
<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;">
Hello <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,<br/><br/>
<t t-if="ctx.get('payment_token') and ctx.get('next_invoice_amount')">
Our final attempt to process a payment for your subscription using your payment method
<t t-out="ctx.get('payment_token') or ''">TOKEN</t>
for <t t-out="ctx['next_invoice_amount'] or ''">100</t> <t t-out="ctx.get('currency') or ''">$</t> failed.
<t t-if="ctx.get('error')">
Your bank or credit institution gave the following details about the issue: <pre t-out="ctx['error'] or ''"></pre>.
</t>
</t>
<t t-else="">
Our final attempt to process a payment for your subscription failed because we have no payment method recorded for you.
</t>
<br/><br/>
As your payment should have been made <strong><t t-out="ctx.get('auto_close_limit') or ''">5</t> days ago</strong>, your subscription has been terminated.
Should you wish to resolve this issue, do not hesitate to contact us.<br/><br/>
Thank you for choosing <t t-out="company.name or ''">YourCompany</t>!
<div t-if="user.signature">
<br/><br/>
<div>--<br/><t t-out="user.signature or ''">Mitchell Admin</t></div>
</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>
<!-- FOOTER -->
<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">
<t t-out="company.name or ''">YourCompany</t>
</td></tr>
<tr><td valign="middle" align="left" style="opacity: 0.7;">
<t t-if="company.phone">
<t t-out="company.phone or ''">+1 650-123-4567</t> |
</t>
<t t-if="company.email">
<a t-attf-href="'mailto:%s' % {{ company.email }}" style="text-decoration:none; color: #454748;" t-out="company.email or ''">info@yourcompany.com</a> |
</t>
<t t-if="company.website">
<a t-attf-href="'%s' % {{ company.website }}" style="text-decoration:none; color: #454748;" t-out="company.website or ''">http://www.example.com</a>
</t>
</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
<!-- POWERED BY -->
<tr><td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr><td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=mail" t-attf-style="color: {{company.email_secondary_color or '#875A7B'}};">Odoo</a>
</td></tr>
</table>
</td></tr>
</table>
</field>
<field name="auto_delete" eval="True"/>
</record>
<record id="email_payment_reminder" model="mail.template">
<field name="name">Subscription: Payment Reminder</field>
<field name="model_id" ref="sale_subscription.model_sale_order"/>
<field name="subject">Payment reminder for subscription {{ object.client_order_ref or object.name }}</field>
<field name="email_from">{{ (object.user_id.email_formatted or object.company_id.email or user.email_formatted) }}</field>
<field name="email_to" eval="False"/>
<field name="use_default_to" eval="True"/>
<field name="description">Sent to customer when payment failed but subscription is not yet cancelled</field>
<field name="body_html" type="html">
<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>
<!-- HEADER -->
<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">
<t t-set="company" t-value="object.company_id or object.user_id.company_id or user.company_id"/>
<span style="font-size: 10px;">Your Subscription</span><br/>
<span style="font-size: 20px; font-weight: bold;" t-out="object.name or ''">Office Cleaning Service</span>
</td></tr>
<tr><td valign="middle" align="right" t-if="not company.uses_default_logo">
<img t-attf-src="/logo.png?company={{ company.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="company.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>
<!-- CONTENT -->
<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;">
Hello <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,<br/><br/>
<t t-if="ctx.get('payment_token') and ctx.get('next_invoice_amount')">
We were unable to process a payment for your subscription using your payment method
<t t-out="ctx['payment_token'] or ''">TOKEN</t>
for <t t-out="ctx['next_invoice_amount'] or ''">10</t> <t t-out="ctx.get('currency_name') or ''">$</t>.
<t t-if="ctx.get('error')">
Your bank or credit institution gave the following details about the issue: <pre t-out="ctx['error'] or ''"></pre>.
</t>
</t>
<t t-else="">
Your subscription <t t-out="object.client_order_ref or ''">CODE</t> is due for renewal but we haven’t received your payment yet. To keep your subscription active, please make your payment as soon as possible.
</t>
<br/><br/>
Your subscription <t t-out="object.client_order_ref or ''">CODE</t> is still valid but will be <strong>suspended</strong>
on <t t-out="format_date(object._get_subscription_close_date()) or ''">05/05/2021</t><br/>
<div style="margin: 16px 0px; text-align: center;">
<a t-attf-href="{{ ctx.get('payment_link', object.get_portal_url()) }}" t-attf-style="display: inline-block; padding: 10px 30px; text-decoration: none; background-color: {{company.email_secondary_color or '#875A7B'}}; color: {{company.email_primary_color or '#FFFFFF'}}; border-radius: 5px;">
Pay Now
</a>
</div>
<br/>
If you have any questions, do not hesitate to contact us.<br/><br/>
Thank you for choosing <t t-out="company.name or ''">YourCompany</t>!
<div>
<t t-if="user.signature">
<br/><br/>
<div>--<br/><t t-out="user.signature or ''">Mitchell Admin</t></div>
</t>
</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>
<!-- FOOTER -->
<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">
<t t-out="company.name or ''">YourCompany</t>
</td></tr>
<tr><td valign="middle" align="left" style="opacity: 0.7;">
<t t-if="company.phone">
<t t-out="company.phone or ''">+1 650-123-4567</t> |
</t>
<t t-if="company.email">
<a t-attf-href="'mailto:%s' % {{ company.email }}" style="text-decoration:none; color: #454748;" t-out="company.email or ''">info@yourcompany.com</a> |
</t>
<t t-if="company.website">
<a t-attf-href="'%s' % {{ company.website }}" style="text-decoration:none; color: #454748;" t-out="company.website or ''">http://www.example.com</a>
</t>
</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>
<!-- POWERED BY -->
<tr><td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
<tr><td style="text-align: center; font-size: 13px;">
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=mail" t-attf-style="color: {{company.email_secondary_color or '#875A7B'}};">Odoo</a>
</td></tr>
</table>
</td></tr>
</table>
</field>
<field name="auto_delete" eval="True"/>
</record>
<!-- Mail sent to request a rating for a subscription -->
<record id="mail_template_subscription_rating" model="mail.template">
<field name="name">Subscription: Rating Request</field>
<field name="model_id" ref="sale_subscription.model_sale_order"/>
<field name="subject">{{ object.company_id.name }}: Service Rating Request</field>
<field name="email_from">{{ (object._rating_get_operator().email_formatted or user.email_formatted) }}</field>
<field name="partner_to" eval="False"/>
<field name="use_default_to" eval="True"/>
<field name="auto_delete" eval="True"/>
<field name="description">Set on subscription's stage (e.g. Closed, Upsell) to ask a rating to customers</field>
<field name="body_html" type="html">
<div style="background:#F0F0F0;color:#515166;padding:10px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;">
<t t-set="access_token" t-value="object._rating_get_access_token()"/>
<table style="width:600px;margin:5px auto;">
<tbody>
<tr><td t-if="not object.company_id.uses_default_logo">
<a href="/"><img t-attf-src="/logo.png?company={{ object.company_id.id }}" style="vertical-align:baseline;max-width:100px;" /></a>
</td><td style="text-align:right;vertical-align:middle;">
Satisfaction Survey
</td></tr>
</tbody>
</table>
<table style="width:600px;margin:0px auto;background:white;border:1px solid #e1e1e1;">
<tbody>
<tr><td style="padding:15px 20px 10px 20px;">
<p>Hello,</p>
<p>Please take a moment to rate our services related to your subscription "<strong t-out="object.name or ''">Office Cleaning Service"</strong>"
assigned to <strong t-out="object._rating_get_operator().name or ''">Mitchell Admin</strong>.</p>
<p>We appreciate your feedback. It helps us to improve continuously.</p>
</td></tr>
<tr><td style="padding:10px 20px">
<table summary="o_mail_notification" style="width:100%;border-top:1px solid #e1e1e1;">
<tr>
<td style="text-align:center;">
<h2 style="font-weight:300;font-size:18px;">
Tell us how you feel about our services:
</h2>
<div style="text-color: #888888">(click on one of these smileys)</div>
</td>
</tr>
<tr>
<td style="padding:10px 10px;">
<table style="width:100%;text-align:center;">
<tr>
<td>
<a t-attf-href="/rate/{{ access_token }}/5">
<img alt="Happy" src="/rating/static/src/img/rating_5.png" title="Happy"/>
</a>
</td>
<td>
<a t-attf-href="/rate/{{ access_token }}/3">
<img alt="Neutral" src="/rating/static/src/img/rating_3.png" title="Neutral"/>
</a>
</td>
<td>
<a t-attf-href="/rate/{{ access_token }}/1">
<img alt="Unhappy" src="/rating/static/src/img/rating_1.png" title="Unhappy"/>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td style="padding:15px 20px 10px 20px;" t-out="object.user_id.signature or ''">--<br/>Mitchell Admin</td></tr>
</tbody>
</table>
<table style="width:600px;margin:auto;text-align:center;font-size:12px;">
<tbody>
<tr><td style="padding-top:10px;color:#afafaf;">
<p>Email automatically sent by <a target="_blank" href="https://www.odoo.com/app/subscriptions" t-attf-style="color: {{object.company_id.email_secondary_color or '#875A7B'}}; text-decoration:none;">Odoo Subscription</a> for <a t-att-href="object.company_id.website" t-attf-style="color: {{object.company_id.email_secondary_color or '#875A7B'}}; text-decoration:none;" t-out="object.company_id.name or ''">YourCompany</a></p>
</td></tr>
</tbody>
</table>
</div>
</field>
</record>
<!-- Mail sent to request a rating for a subscription -->
<record id="mail_template_subscription_alert" model="mail.template">
<field name="name">Subscription: Default Email Alert</field>
<field name="model_id" ref="sale_subscription.model_sale_order"/>
<field name="subject">{{ object.company_id.name }}: Please check the subscription {{ object.name }}</field>
<field name="email_from">{{ (object.user_id.email_formatted or user.email_formatted) }}</field>
<field name="partner_to" eval="False"/>
<field name="use_default_to" eval="True"/>
<field name="auto_delete" eval="True"/>
<field name="description">Template to be used on customized alerts for subscriptions requiring attention</field>
<field name="body_html" type="html">
<div style="background:#F0F0F0;color:#515166;padding:10px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;">
<table style="width:600px;margin:5px auto;">
<tbody>
<tr><td t-if="not object.company_id.uses_default_logo">
<a href="/"><img t-attf-src="/logo.png?company={{ object.company_id.id }}" style="vertical-align:baseline;max-width:100px;" /></a>
</td><td style="text-align:right;vertical-align:middle;">
Subscription Renewal
</td></tr>
</tbody>
</table>
<table style="width:600px;margin:0px auto;background:white;border:1px solid #e1e1e1;">
<tbody>
<tr><td style="padding:15px 20px 10px 20px;">
<p>Dear <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,</p>
<p>Your subscription <strong t-out="object.name or ''">Office Cleaning Service"</strong> needs your attention.</p>
<p>We invite you to renew it by clicking on the following link.</p>
<p>Kind regards.</p>
</td></tr>
<tr><td style="padding:15px 20px 10px 20px;" t-out="object.user_id.signature or ''">--<br/>Mitchell Admin</td></tr>
</tbody>
</table>
</div>
</field>
</record>
</data>
</odoo>