flectra/addons/rma/data/mail_template_data.xml

100 lines
5.0 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8"?>
<flectra noupdate="1">
<record id="email_template_notify_warranty_date" model="mail.template">
<field name="name">Warranty: Product Warranty email</field>
<field name="email_from">
${(object.user_id.email and '%s &lt;%s&gt;' % (object.user_id.name, object.user_id.email) or '')|safe}
</field>
<field name="subject">${object.name or 'n/a'}</field>
<field name="partner_to">${object.partner_id.id}</field>
<field name="model_id" ref="rma.model_rma_request"/>
<field name="auto_delete" eval="True"/>
<field name="lang">${object.partner_id.lang}</field>
<field name="body_html"><![CDATA[
% if object.is_website:
%if object.is_replacement:
<div>
<p>Dear ${object.partner_id.name}</p>
<p>We do hereby confirm the reception of your
request regarding replacement of products
<b>${object.rma_line.product_id.name}</b>, Please accept our apologies
for this incident.</p>
<p> As per your request, a new shipment for
<b>${object.rma_line.product_id.name}</b> will be created
soon and we will replace product.</p>
<p>We are sorry that this occurred and appreciate
your continued patronage, As a thanks for
being one of our best client.
Should you have any questions,
please do not hesitate to contact us.
</p>
<p>Thank You</p>
</div>
%else:
<div>
<p>Dear ${object.partner_id.name}</p>
<p>We do hereby confirm the reception of your
request regarding return of products
<b>${object.rma_line.product_id.name}</b>, Please accept our apologies
for this incident.</p>
<p>We are sorry that this occurred and appreciate
your continued patronage, As a thanks for
being one of our best client.
Should you have any questions,
please do not hesitate to contact us.
</p>
<p>Thank You</p>
</div>
%endif
% else:
% if object.warranty_expire_line:
<div>
<p>Dear ${object.partner_id.name}</p>
<p>We are sorry to hear about the problem you have had
with your product.
</p>
<p> We would like to be able to make the necessary
adjustment at no charge to you,
but unfortunately the warranty is expired of
following products:
</p>
</div>
<table border="1" width="100%">
<thead>
<tr>
<th>Product</th>
<th>Lot</th>
<th>Quantity</th>
<th>Warranty Date</th>
</tr>
</thead>
<tbody>
% for line in object.warranty_expire_line:
<tr>
<td>${line.product_id.name}</td>
<td>${line.lot_id.name}</td>
<td>${line.qty_expired}</td>
<td>${line.warranty_date}</td>
</tr>
% endfor
</tbody>
</table>
% else:
<div>
<p>Dear ${object.partner_id.name}</p>
<p>We are sorry to hear about the problem you have had
with your product.</p>
<p>We would like to be able to make the necessary
adjustment at no charge to you.
</p>
</div>
% endif
% endif
]]>
</field>
</record>
</flectra>