odoo/addons/account_followup/account_followup_data.xml

74 lines
2.0 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<openerp>
<!-- Mail template is done in a NOUPDATE block
so users can freely customize/delete them -->
<data noupdate="1">
<!--Email template -->
<record id="email_template_account_followup_level2" model="email.template">
<field name="name">Followup of overdue invoices level 2</field>
<field name="email_from">${user.email or ''}</field>
<field name="subject">${object.company_id.name} Followup</field>
<field name="email_to">${object.email}</field>
<field name="lang">${object.lang}</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="auto_delete" eval="True"/>
<field name="body_html"><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
<p>Dear ${object.name and ' ' or ''},</p>
<p>
Despite several reminders, your account is still not settled.
Unless full payment is made in next 8 days, legal action for the recovery of the debt will be taken without
further notice.
I trust that this action will prove unnecessary and details of due payments is printed below.
In case of any queries concerning this matter, do not hesitate to contact our accounting department at (+32).10.68.94.39.
</p>
<br/>
Best Regards,
<table width=80%>
<tr>
<td>Invoice date</td>
<td>Reference</td>
<td>Maturity date</td>
<td>Amount</td>
<td>Lit.</td>
</tr>
% for aml in object.accountmoveline_ids :
<tr>
<td>
${aml.date}
</td>
<td>
${aml.ref}
</td>
<td>
% if aml.date_maturity and aml.date_maturity > fields.date.context_today(cr, uid, context):
${aml.date_maturity}
% else:
${aml.date}
% endif
</td>
<td>
${aml.debit}
</td>
<td>
% if aml.blocked:
X
% endif
</td>
</tr>
% endfor
</table>
<br/>
</div>
]]></field>
</record>
</data>
</openerp>