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.
 
 
 
 
 

54 lines
2.4 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', '=', '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>