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.
62 lines
2.8 KiB
62 lines
2.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<!--Function to set noupdate to False-->
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'email_template_edi_purchase_done'), ('module', '=', 'purchase')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': False}"/>
|
|
</function>
|
|
<!--Confirmed po send mail data-->
|
|
<record id="purchase.email_template_edi_purchase_done"
|
|
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 ''">Brandon Freeman</t>
|
|
<t t-if="object.partner_id.parent_id">
|
|
(<t t-out="object.partner_id.parent_id.name or ''">
|
|
Azure Interior</t>)
|
|
</t>
|
|
<br/>
|
|
<br/>
|
|
Here is in attachment a purchase order
|
|
<strong t-out="object.name or ''">P00015</strong>
|
|
<t t-if="object.partner_ref">
|
|
with reference:
|
|
<t t-out="object.partner_ref or ''">REF_XXX</t>
|
|
</t>
|
|
amounting in
|
|
<strong t-out="format_amount(object.amount_total, 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/>
|
|
<t t-if="object.date_planned">
|
|
The receipt is expected for <strong
|
|
t-out="format_date(object.date_planned) or ''">
|
|
05/05/2021</strong>.
|
|
<br/>
|
|
<br/>
|
|
Could you please acknowledge the receipt of this order?
|
|
</t>
|
|
</p>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
<!-- Function to set noupdate to True-->
|
|
<function name="write" model="ir.model.data">
|
|
<function name="search" model="ir.model.data">
|
|
<value eval="[('name', '=', 'email_template_edi_purchase_done'), ('module', '=', 'purchase')]"/>
|
|
</function>
|
|
<value eval="{'noupdate': True}"/>
|
|
</function>
|
|
</data>
|
|
</odoo>
|
|
|