204 lines
17 KiB
XML
204 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2024-2025 Nexa Systems Inc.
|
|
License OPL-1 (Odoo Proprietary License v1.0)
|
|
Part of the Fusion Claim Assistant product family.
|
|
|
|
Email templates for ADP sales with landscape reports.
|
|
Design: Professional, dark/light mode safe, anti-spam friendly.
|
|
-->
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- ADP Quotation Email Template (Landscape Report) -->
|
|
<!-- =============================================================== -->
|
|
<record id="email_template_adp_quotation" model="mail.template">
|
|
<field name="name">ADP: Send Quotation (Landscape)</field>
|
|
<field name="model_id" ref="sale.model_sale_order"/>
|
|
<field name="subject">{{ object.company_id.name }} - Quotation {{ object.name or 'n/a' }}</field>
|
|
<field name="email_from">{{ (object.user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
|
<field name="partner_to">{{ object.partner_id.id }}</field>
|
|
<field name="body_html" type="html">
|
|
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;max-width:600px;margin:0 auto;color:#2d3748;">
|
|
<div style="height:4px;background-color:#2B6CB0;"></div>
|
|
<div style="background:#ffffff;padding:32px 28px;border:1px solid #e2e8f0;border-top:none;">
|
|
<p style="color:#2B6CB0;font-size:13px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;margin:0 0 24px 0;">
|
|
<t t-out="object.company_id.name"/>
|
|
</p>
|
|
<h2 style="color:#1a202c;font-size:22px;font-weight:700;margin:0 0 6px 0;line-height:1.3;">ADP Quotation</h2>
|
|
<p style="color:#718096;font-size:15px;line-height:1.5;margin:0 0 24px 0;">
|
|
Please find attached your quotation <strong style="color:#2d3748;"><t t-out="object.name"/></strong>.
|
|
</p>
|
|
<table style="width:100%;border-collapse:collapse;margin:0 0 24px 0;">
|
|
<tr><td colspan="2" style="padding:10px 14px;font-size:12px;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:0.5px;border-bottom:2px solid #e2e8f0;">Quotation Details</td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;width:35%;">Reference</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.name"/></td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Date</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.date_order" t-options="{'widget': 'date'}"/></td></tr>
|
|
<t t-if="object.x_fc_authorizer_id">
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Authorizer</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.x_fc_authorizer_id.name"/></td></tr>
|
|
</t>
|
|
<t t-if="object.x_fc_client_type == 'REG'">
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Client Portion (25%)</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.x_fc_client_portion_total" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">ADP Portion (75%)</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.x_fc_adp_portion_total" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
</t>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;font-weight:600;border-top:2px solid #e2e8f0;">Total</td><td style="padding:10px 14px;color:#2B6CB0;font-size:14px;font-weight:700;border-top:2px solid #e2e8f0;"><t t-out="object.amount_total" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
</table>
|
|
<div style="padding:10px 14px;border:1px dashed #e2e8f0;border-radius:6px;margin:0 0 24px 0;">
|
|
<p style="margin:0;font-size:13px;color:#718096;"><strong style="color:#2d3748;">Attached:</strong> ADP Quotation (PDF)</p>
|
|
</div>
|
|
<div style="border-left:3px solid #2B6CB0;padding:12px 16px;margin:0 0 24px 0;background:#f7fafc;">
|
|
<p style="margin:0;font-size:14px;line-height:1.5;color:#2d3748;">Please review the attached quotation. If you have any questions or need assistance, do not hesitate to contact us.</p>
|
|
</div>
|
|
<p style="color:#2d3748;font-size:14px;line-height:1.6;margin:24px 0 0 0;">
|
|
Best regards,<br/>
|
|
<strong><t t-out="object.user_id.name or object.company_id.name"/></strong><br/>
|
|
<span style="color:#718096;"><t t-out="object.company_id.name"/></span>
|
|
</p>
|
|
</div>
|
|
<div style="padding:16px 28px;text-align:center;">
|
|
<p style="color:#a0aec0;font-size:11px;line-height:1.5;margin:0;">
|
|
<t t-out="object.company_id.name"/>
|
|
<t t-if="object.company_id.phone"> · <t t-out="object.company_id.phone"/></t>
|
|
<t t-if="object.company_id.email"> · <t t-out="object.company_id.email"/></t><br/>
|
|
This is an automated notification from the ADP Claims Management System.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</field>
|
|
<field name="lang">{{ object.partner_id.lang }}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="report_template_ids" eval="[(4, ref('fusion_claims.action_report_saleorder_landscape'))]"/>
|
|
</record>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- ADP Sales Order Confirmation Email Template -->
|
|
<!-- =============================================================== -->
|
|
<record id="email_template_adp_sales_order" model="mail.template">
|
|
<field name="name">ADP: Sales Order Confirmation (Landscape)</field>
|
|
<field name="model_id" ref="sale.model_sale_order"/>
|
|
<field name="subject">{{ object.company_id.name }} - Order Confirmation {{ object.name or 'n/a' }}</field>
|
|
<field name="email_from">{{ (object.user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
|
<field name="partner_to">{{ object.partner_id.id }}</field>
|
|
<field name="body_html" type="html">
|
|
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;max-width:600px;margin:0 auto;color:#2d3748;">
|
|
<div style="height:4px;background-color:#38a169;"></div>
|
|
<div style="background:#ffffff;padding:32px 28px;border:1px solid #e2e8f0;border-top:none;">
|
|
<p style="color:#38a169;font-size:13px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;margin:0 0 24px 0;">
|
|
<t t-out="object.company_id.name"/>
|
|
</p>
|
|
<h2 style="color:#1a202c;font-size:22px;font-weight:700;margin:0 0 6px 0;line-height:1.3;">Order Confirmed</h2>
|
|
<p style="color:#718096;font-size:15px;line-height:1.5;margin:0 0 24px 0;">
|
|
Your ADP sales order <strong style="color:#2d3748;"><t t-out="object.name"/></strong> has been confirmed.
|
|
</p>
|
|
<table style="width:100%;border-collapse:collapse;margin:0 0 24px 0;">
|
|
<tr><td colspan="2" style="padding:10px 14px;font-size:12px;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:0.5px;border-bottom:2px solid #e2e8f0;">Order Details</td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;width:35%;">Reference</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.name"/></td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Date</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.date_order" t-options="{'widget': 'date'}"/></td></tr>
|
|
<t t-if="object.x_fc_authorizer_id">
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Authorizer</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.x_fc_authorizer_id.name"/></td></tr>
|
|
</t>
|
|
<t t-if="object.x_fc_client_type == 'REG'">
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Client Portion (25%)</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.x_fc_client_portion_total" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">ADP Portion (75%)</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.x_fc_adp_portion_total" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
</t>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;font-weight:600;border-top:2px solid #e2e8f0;">Total</td><td style="padding:10px 14px;color:#38a169;font-size:14px;font-weight:700;border-top:2px solid #e2e8f0;"><t t-out="object.amount_total" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
</table>
|
|
<div style="padding:10px 14px;border:1px dashed #e2e8f0;border-radius:6px;margin:0 0 24px 0;">
|
|
<p style="margin:0;font-size:13px;color:#718096;"><strong style="color:#2d3748;">Attached:</strong> Sales Order Confirmation (PDF)</p>
|
|
</div>
|
|
<div style="border-left:3px solid #38a169;padding:12px 16px;margin:0 0 24px 0;background:#f7fafc;">
|
|
<p style="margin:0;font-size:14px;line-height:1.5;color:#2d3748;">Your order is being processed. We will keep you updated on the delivery status and any updates from the Assistive Devices Program.</p>
|
|
</div>
|
|
<p style="color:#2d3748;font-size:14px;line-height:1.6;margin:24px 0 0 0;">
|
|
Best regards,<br/>
|
|
<strong><t t-out="object.user_id.name or object.company_id.name"/></strong><br/>
|
|
<span style="color:#718096;"><t t-out="object.company_id.name"/></span>
|
|
</p>
|
|
</div>
|
|
<div style="padding:16px 28px;text-align:center;">
|
|
<p style="color:#a0aec0;font-size:11px;line-height:1.5;margin:0;">
|
|
<t t-out="object.company_id.name"/>
|
|
<t t-if="object.company_id.phone"> · <t t-out="object.company_id.phone"/></t>
|
|
<t t-if="object.company_id.email"> · <t t-out="object.company_id.email"/></t><br/>
|
|
This is an automated notification from the ADP Claims Management System.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</field>
|
|
<field name="lang">{{ object.partner_id.lang }}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="report_template_ids" eval="[(4, ref('fusion_claims.action_report_saleorder_landscape'))]"/>
|
|
</record>
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- ADP Client Invoice Email Template -->
|
|
<!-- =============================================================== -->
|
|
<record id="email_template_adp_invoice" model="mail.template">
|
|
<field name="name">ADP: Send Invoice (Landscape)</field>
|
|
<field name="model_id" ref="account.model_account_move"/>
|
|
<field name="subject">{{ object.company_id.name }} - Invoice {{ object.name or 'Draft' }}</field>
|
|
<field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
|
<field name="partner_to">{{ object.partner_id.id }}</field>
|
|
<field name="body_html" type="html">
|
|
<div style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;max-width:600px;margin:0 auto;color:#2d3748;">
|
|
<div style="height:4px;background-color:#2B6CB0;"></div>
|
|
<div style="background:#ffffff;padding:32px 28px;border:1px solid #e2e8f0;border-top:none;">
|
|
<p style="color:#2B6CB0;font-size:13px;font-weight:600;letter-spacing:0.5px;text-transform:uppercase;margin:0 0 24px 0;">
|
|
<t t-out="object.company_id.name"/>
|
|
</p>
|
|
<h2 style="color:#1a202c;font-size:22px;font-weight:700;margin:0 0 6px 0;line-height:1.3;">Invoice</h2>
|
|
<p style="color:#718096;font-size:15px;line-height:1.5;margin:0 0 24px 0;">
|
|
Please find attached your invoice <strong style="color:#2d3748;"><t t-out="object.name or 'Draft'"/></strong>.
|
|
</p>
|
|
<table style="width:100%;border-collapse:collapse;margin:0 0 24px 0;">
|
|
<tr><td colspan="2" style="padding:10px 14px;font-size:12px;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:0.5px;border-bottom:2px solid #e2e8f0;">Invoice Details</td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;width:35%;">Invoice</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.name or 'Draft'"/></td></tr>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Date</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.invoice_date" t-options="{'widget': 'date'}"/></td></tr>
|
|
<t t-if="object.invoice_date_due">
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Due Date</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;"><t t-out="object.invoice_date_due" t-options="{'widget': 'date'}"/></td></tr>
|
|
</t>
|
|
<t t-if="object.x_fc_adp_invoice_portion">
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;border-bottom:1px solid #f0f0f0;">Type</td><td style="padding:10px 14px;color:#2d3748;font-size:14px;border-bottom:1px solid #f0f0f0;">
|
|
<t t-if="object.x_fc_adp_invoice_portion == 'client'">Client Portion</t>
|
|
<t t-if="object.x_fc_adp_invoice_portion == 'adp'">ADP Portion</t>
|
|
</td></tr>
|
|
</t>
|
|
<tr><td style="padding:10px 14px;color:#718096;font-size:14px;font-weight:600;border-top:2px solid #e2e8f0;">Amount Due</td><td style="padding:10px 14px;color:#2B6CB0;font-size:14px;font-weight:700;border-top:2px solid #e2e8f0;"><t t-out="object.amount_residual" t-options="{'widget': 'monetary', 'display_currency': object.currency_id}"/></td></tr>
|
|
</table>
|
|
<div style="padding:10px 14px;border:1px dashed #e2e8f0;border-radius:6px;margin:0 0 24px 0;">
|
|
<p style="margin:0;font-size:13px;color:#718096;"><strong style="color:#2d3748;">Attached:</strong> Invoice (PDF)</p>
|
|
</div>
|
|
<t t-if="object.x_fc_adp_invoice_portion == 'client'">
|
|
<div style="border-left:3px solid #2B6CB0;padding:12px 16px;margin:0 0 24px 0;background:#f7fafc;">
|
|
<p style="margin:0;font-size:14px;line-height:1.5;color:#2d3748;">This invoice represents your client portion for the ADP-funded equipment. The remaining amount will be billed directly to the Assistive Devices Program.</p>
|
|
</div>
|
|
</t>
|
|
<t t-else="">
|
|
<div style="border-left:3px solid #2B6CB0;padding:12px 16px;margin:0 0 24px 0;background:#f7fafc;">
|
|
<p style="margin:0;font-size:14px;line-height:1.5;color:#2d3748;">Please review the attached invoice and process payment at your earliest convenience. Contact us if you have any questions.</p>
|
|
</div>
|
|
</t>
|
|
<p style="color:#2d3748;font-size:14px;line-height:1.6;margin:24px 0 0 0;">
|
|
Best regards,<br/>
|
|
<strong><t t-out="object.invoice_user_id.name or object.company_id.name"/></strong><br/>
|
|
<span style="color:#718096;"><t t-out="object.company_id.name"/></span>
|
|
</p>
|
|
</div>
|
|
<div style="padding:16px 28px;text-align:center;">
|
|
<p style="color:#a0aec0;font-size:11px;line-height:1.5;margin:0;">
|
|
<t t-out="object.company_id.name"/>
|
|
<t t-if="object.company_id.phone"> · <t t-out="object.company_id.phone"/></t>
|
|
<t t-if="object.company_id.email"> · <t t-out="object.company_id.email"/></t><br/>
|
|
This is an automated notification from the ADP Claims Management System.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</field>
|
|
<field name="lang">{{ object.partner_id.lang }}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="report_template_ids" eval="[(4, ref('fusion_claims.action_report_invoice_landscape'))]"/>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|