flectra/addons/mrp_repair/data/mrp_repair_data.xml
2018-01-16 02:34:37 -08:00

32 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data noupdate="1">
<!--Email template -->
<record id="mail_template_mrp_repair_quotation" model="mail.template">
<field name="name">Mrp Repair Quotation - Send by Email</field>
<field name="email_from">${(object.create_uid.email and '%s &lt;%s&gt;' % (object.create_uid.name, object.create_uid.email) or '')|safe}</field>
<field name="subject">${object.partner_id.name} Repair Orders (Ref ${object.name or 'n/a' })</field>
<field name="partner_to">${object.partner_id.id}</field>
<field name="model_id" ref="mrp_repair.model_mrp_repair"/>
<field name="report_template" ref="action_report_mrp_repair_order"/>
<field name="report_name">${(object.name or '').replace('/','_')}</field>
<field name="lang">${object.partner_id.lang}</field>
<field name="body_html" type="xml">
<p>Dear ${object.partner_id.name}</p>
<p>
Here is your repair order ${doc_name} <strong>${object.name}</strong>
% if object.origin:
(with reference: ${object.origin} )
% endif
% if object.invoice_method != 'none':
amounting in <strong>${object.amount_total} ${object.pricelist_id.currency_id.name}.</strong>
% endif
</p>
<p>You can reply to this email if you have any questions.</p>
<p>Thank you,</p>
</field>
</record>
</data>
</flectra>