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.
 
 
 
 
 

46 lines
2.3 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<!-- Whatsapp message mail template of account move -->
<record id="account_move_whatsapp_template" model="mail.template">
<field name="name">Whatsapp Template for Invoice</field>
<field name="subject">Invoice Template</field>
<field name="model_id" ref="account.model_account_move"/>
<field name="is_invoice_template">True</field>
<field name="body_html">
<![CDATA[<div style="font-family: Ubuntu, Arial, Verdana, sans-serif; font-size: 12px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
<div>
Hello *<t t-out="object.partner_id.name or ''"></t>*
Greetings from *<t t-out="object.company_id.name or ' '"></t>*
</div>
<div>
Your invoice number *<t t-out="object.name"></t>* with amount *<t t-out="format_amount(object.amount_total, object.currency_id)"></t>*
from <t t-out="object.company_id.name"></t>.
</div>
<div>
<t t-if="object.payment_state in ('paid')">
This invoice is already paid and Amount due is *<t t-out="format_amount(object.amount_residual, object.currency_id)"></t>*
</t>
<t t-else="">
Please remit payment at your earliest convenience. Amount due is *<t t-out="format_amount(object.amount_residual, object.currency_id)"></t>*
</t>
</div>
The invoice date is <t t-out="object.invoice_date"></t>
<div>
Your order details are as follows:
<br>
<t t-foreach="object" t-as="each">
<t t-foreach="each.invoice_line_ids" t-as="id">
*Product: <t t-out="id.product_id.name"></t>* <br>
*Qty: <t t-out="id.quantity"></t>*<br>
*Price:<t t-out="id.price_unit"></t>*<br>
</t>
</t>
</div>
If you have any questions, please feel free to contact us.
]]>
</field>
</record>
</data>
</odoo>