1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_br_edi/data/mail_template_data.xml
2024-12-10 09:04:09 +07:00

50 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="mail_template_move_update" model="mail.template">
<field name="name">Invoice: Brazilian EDI correction</field>
<field name="model_id" ref="account.model_account_move"/>
<field name="subject">{{ object.company_id.name }} Invoice (Ref {{ object.name or 'n/a' }}): Important Update</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="description">Sent to customers when a Brazilian e-invoice is corrected or cancelled.</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 12px;">
Dear
<t t-if="object.partner_id.parent_id">
<t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
</t>
<t t-else="">
<t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
</t>
<br/><br/>
We hope you are well. We want to inform you about an update regarding
invoice <span style="font-weight:bold;" t-out="object.name or ''">INV/2021/05/0005</span>
<t t-if="object.invoice_origin">
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
</t>
dated <t t-out="format_date(object.invoice_date) or ''">01/01/2024</t>.
<br/><br/>
This invoice has been
<t t-if="ctx.get('wizard_mode') == 'cancel'">cancelled.</t>
<t t-else="">corrected.</t>
Please review the attached documents for details.
<br/><br/>
Do not hesitate to contact us if you have any questions.
<br/><br/>
Best regards,
<t t-if="not is_html_empty(object.user_id.signature)">
<br/><br/>
<t t-out="object.user_id.signature or ''">--<br/>Mitchell Admin</t>
</t>
</p>
</div>
</field>
</record>
</data>
</odoo>