Files
enterprise-addons/account_reports/data/mail_templates.xml
T

112 lines
6.4 KiB
XML

<odoo>
<record id="email_template_customer_statement" model="mail.template">
<field name="name">Customer Statement</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="email_from">{{ object._get_followup_responsible().email_formatted }}</field>
<field name="use_default_to" eval="True"/>
<field name="subject">{{ (object.company_id or object._get_followup_responsible().company_id).name }} Statement - {{ object.commercial_company_name }}</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px;">
<t t-if="object.id != object.commercial_partner_id.id">Dear <t t-out="object.name or ''"/> (<t t-out="object.commercial_partner_id.name or ''"/>),</t>
<t t-else="">Dear <t t-out="object.name or ''"/>,</t>
<br/>
Please find enclosed the statement of your account.
<br/>
Do not hesitate to contact us if you have any questions.
<br/>
Sincerely,
<br/>
<t t-out="object._get_followup_responsible().name if is_html_empty(object._get_followup_responsible().signature) else object._get_followup_responsible().signature"/>
</p>
</div>
</field>
<field name="lang">{{ object.lang }}</field>
<field name="auto_delete" eval="False"/>
</record>
<record id="email_template_generic_tax_instructions" model="mail.template">
<field name="name">Tax payment</field>
<field name="model_id" ref="account_reports.model_account_return"/>
<field name="email_from">{{ (user.email_formatted or object.company_id.email_formatted) }}</field>
<field name="use_default_to" eval="True"/>
<field name="subject">Tax return payment instructions</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p>
Dear <t t-out="object.company_id.name">YourCompany</t>,
</p>
<p>
Based on the documents and information received, the VAT return of <t t-out="object.company_id.name">YourCompany</t>
for period <t t-out="object.type_id._get_period_name(object.company_id, object.date_from, object.date_to)"/> has been submitted.
</p>
<p>
It has been determined that an amount of <t t-out="format_amount(object.total_amount_to_pay, object.amount_to_pay_currency_id)"/> remains payable.
</p>
<table style="border:1px solid black; padding:20px; text-align:left; border-spacing: 16px;">
<tr>
<td>Amount to Pay</td>
<td><t t-out="format_amount(object.total_amount_to_pay, object.amount_to_pay_currency_id)"/></td>
</tr>
<tr>
<td>Due By</td>
<td><t t-out="format_date(object.date_deadline)"/></td>
</tr>
</table>
<p>Kind regards,</p>
<p><t t-out="user.name">Mitchell Admin</t></p>
</div>
</field>
<field name="lang">{{ user.lang }}</field>
<field name="auto_delete" eval="False"/>
</record>
<record id="email_template_customer_follow_up_report" model="mail.template">
<field name="name">Follow Up Report</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="email_from">{{ object._get_followup_responsible().email_formatted }}</field>
<field name="use_default_to" eval="True"/>
<field name="subject">{{ (object.company_id or object._get_followup_responsible().company_id).name }} Follow Up - {{ object.commercial_company_name }}</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px;">
<t t-if="object.id != object.commercial_partner_id.id">Dear <t t-out="object.name or ''"/> (<t t-out="object.commercial_partner_id.name or ''"/>),</t>
<t t-else="">Dear <t t-out="object.name or ''"/>,</t>
<br/>
Please find enclosed the list of your open invoices.
<br/>
Do not hesitate to contact us if you have any questions.
<br/>
Sincerely,
<br/>
<t t-out="object._get_followup_responsible().name if is_html_empty(object._get_followup_responsible().signature) else object._get_followup_responsible().signature"/>
</p>
</div>
</field>
<field name="lang">{{ object.lang }}</field>
<field name="auto_delete" eval="False"/>
</record>
<record id="email_template_tax_return_deadline" model="mail.template">
<field name="name">Tax Return Deadline</field>
<field name="model_id" ref="account_reports.model_account_return"/>
<field name="subject">Reminder: Upcoming {{ object.name }} Deadline - Action Required</field>
<field name="partner_to" >{{ ctx.get('partner') and ctx['partner'].id }}</field>
<field name="use_default_to" eval="False"/>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px;">
Hi <span t-out="ctx.get('partner') and ctx['partner'].name"/>,<br/><br/>
The deadline to submit <strong t-out="object.name"/> is <strong t-out="format_date(object.date_deadline)"/>.<br/>
To avoid any potential fine, please ensure all remaining documents are sent over as soon as possible.<br/>
If you've already submitted everything but still received this email, it's likely the tax return hasn't been marked as submitted in Odoo.<br/>
Should you have any question or need assistance, feel free to get in touch.<br/><br/>
Best regards,<br/>
</p>
</div>
</field>
<field name="lang">{{ ctx.get('partner') and ctx['partner'].lang }}</field>
<field name="auto_delete" eval="False"/>
</record>
</odoo>