You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
183 lines
8.8 KiB
183 lines
8.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'email_template_edi_invoice'), ('module', '=', 'account')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': False}"/>
|
|
</function>
|
|
<!-- To shows the amount in words on the invoice send mail-->
|
|
<record id="account.email_template_edi_invoice" model="mail.template">
|
|
<field name="body_html" type="html">
|
|
<div style="margin: 0px; padding: 0px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
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/>
|
|
Here is your
|
|
<t t-if="object.name">
|
|
invoice
|
|
<strong t-out="object.name or ''">INV/2021/05/0005</strong>
|
|
</t>
|
|
<t t-else="">
|
|
invoice
|
|
</t>
|
|
<t t-if="object.invoice_origin">
|
|
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
|
|
</t>
|
|
amounting in
|
|
<strong t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00
|
|
</strong>
|
|
<span>(
|
|
<strong t-out="object.number_to_words"/>)
|
|
</span>
|
|
from <t t-out="object.company_id.name or ''">YourCompany</t>.
|
|
<t t-if="object.payment_state in ('paid', 'in_payment')">
|
|
This invoice is already paid.
|
|
</t>
|
|
<t t-else="">
|
|
Please remit payment at your earliest convenience.
|
|
<t t-if="object.payment_reference">
|
|
<br/>
|
|
<br/>
|
|
Please use the following communication for your payment: <strong
|
|
t-out="object.payment_reference or ''">INV/2021/05/0005</strong>.
|
|
</t>
|
|
</t>
|
|
<br/>
|
|
<br/>
|
|
Do not hesitate to contact us if you have any questions.
|
|
<t t-if="object.invoice_user_id.signature">
|
|
<br/>
|
|
<t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin
|
|
</t>
|
|
</t>
|
|
</p>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'email_template_edi_invoice'), ('module', '=', 'account')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': True}"/>
|
|
</function>
|
|
</data>
|
|
<data noupdate="1">
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'email_template_edi_credit_note'),
|
|
('module', '=', 'account')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': False}"/>
|
|
</function>
|
|
<!--Showing the amount in words on the credit note sent mail-->
|
|
<record id="account.email_template_edi_credit_note" model="mail.template">
|
|
<field name="body_html" type="html">
|
|
<div style="margin: 0px; padding: 0px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
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/>
|
|
Here is your
|
|
<t t-if="object.name">
|
|
credit note
|
|
<strong t-out="object.name or ''">RINV/2021/05/0001</strong>
|
|
</t>
|
|
<t t-else="">
|
|
credit note
|
|
</t>
|
|
<t t-if="object.invoice_origin">
|
|
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
|
|
</t>
|
|
amounting in
|
|
<strong t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00
|
|
</strong>
|
|
<span>
|
|
(<strong t-out="object.number_to_words"/>)
|
|
</span>
|
|
from <t t-out="object.company_id.name or ''">YourCompany</t>.
|
|
<br/>
|
|
<br/>
|
|
Do not hesitate to contact us if you have any questions.
|
|
<t t-if="object.invoice_user_id.signature">
|
|
<br/>
|
|
<t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin
|
|
</t>
|
|
</t>
|
|
</p>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'email_template_edi_credit_note'), ('module', '=', 'account')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': True}"/>
|
|
</function>
|
|
</data>
|
|
<data noupdate="1">
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'mail_template_data_payment_receipt'), ('module', '=', 'account')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': False}"/>
|
|
</function>
|
|
<!-- To shows the amount in words on the payment send mail-->
|
|
<record id="account.mail_template_data_payment_receipt" model="mail.template">
|
|
<field name="body_html" type="html">
|
|
<div style="margin: 0px; padding: 0px;">
|
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
Dear
|
|
<t t-out="object.partner_id.name or ''">Azure Interior</t>
|
|
<br/>
|
|
<br/>
|
|
Thank you for your payment.
|
|
Here is your payment receipt <strong t-out="(object.name or '').replace('/','-') or ''">
|
|
BNK1-2021-05-0002
|
|
</strong> amounting
|
|
to
|
|
<strong t-out="format_amount(object.amount, object.currency_id) or ''">$ 10.00</strong>
|
|
<span>
|
|
(<strong t-out="object.number_to_words"/>)
|
|
</span>
|
|
from <t
|
|
t-out="object.company_id.name or ''">YourCompany</t>.
|
|
<br/>
|
|
<br/>
|
|
Do not hesitate to contact us if you have any questions.
|
|
<br/>
|
|
<br/>
|
|
Best regards,
|
|
<t t-if="user.signature">
|
|
<br/>
|
|
<t t-out="user.signature or ''">--<br/>Mitchell Admin
|
|
</t>
|
|
</t>
|
|
</p>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'mail_template_data_payment_receipt'), ('module', '=', 'account')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': True}"/>
|
|
</function>
|
|
</data>
|
|
</odoo>
|
|
|