2009-09-15 09:46:27 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
2012-10-25 09:15:44 +00:00
|
|
|
<!-- Mail template is done in a NOUPDATE block
|
|
|
|
so users can freely customize/delete them -->
|
|
|
|
<data noupdate="1">
|
2009-09-15 09:46:27 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
<!--Mail template level 0-->
|
|
|
|
<record id="email_template_account_followup_level0" model="email.template">
|
2012-11-12 17:38:57 +00:00
|
|
|
<field name="name">Follow-up of overdue invoices level 0</field>
|
2012-11-06 17:15:22 +00:00
|
|
|
<field name="email_from">${user.email or ''}</field>
|
2012-11-08 14:14:57 +00:00
|
|
|
<field name="subject">${object.company_id.name} Payments Follow-up</field>
|
2012-11-06 17:15:22 +00:00
|
|
|
<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>
|
|
|
|
Exception made if there was a mistake of ours, it seems that the following amount stays unpaid. Please, take
|
|
|
|
appropriate measures in order to carry out this payment in the next 8 days.
|
|
|
|
Would your payment have been carried out after this mail was sent, please ignore this message. Do not hesitate to
|
|
|
|
contact our accounting department at (+32).10.68.94.39.
|
|
|
|
Best Regards,
|
|
|
|
</p>
|
|
|
|
<br/>
|
|
|
|
Best Regards,
|
2009-09-15 09:46:27 +00:00
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<br/>
|
|
|
|
${user.name}
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
2012-11-23 15:42:33 +00:00
|
|
|
|
|
|
|
<table border="2" width=100%>
|
2012-11-08 14:14:57 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
<tr>
|
2012-11-23 15:42:33 +00:00
|
|
|
<td>Invoice date</td>
|
|
|
|
<td>Reference</td>
|
2012-11-08 14:14:57 +00:00
|
|
|
<td>Due date</td>
|
2012-11-06 17:15:22 +00:00
|
|
|
<td>Amount</td>
|
|
|
|
<td>Lit.</td>
|
|
|
|
</tr>
|
2012-11-23 15:42:33 +00:00
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<%
|
2012-11-23 15:42:33 +00:00
|
|
|
amls = object.unreconciled_aml_ids
|
2012-11-08 14:14:57 +00:00
|
|
|
mel = {}
|
2012-11-23 15:42:33 +00:00
|
|
|
total = 0
|
|
|
|
for aml in amls:
|
2012-11-08 14:14:57 +00:00
|
|
|
strbegin = "<TD> "
|
|
|
|
strend = "</TD> "
|
|
|
|
date = False
|
|
|
|
if aml.date_maturity:
|
|
|
|
date = aml.date_maturity
|
|
|
|
if aml.date_maturity <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
if aml.date <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
strbegin = "<TD>"
|
|
|
|
strend = "</TD>"
|
|
|
|
date = aml.date
|
|
|
|
block = " "
|
|
|
|
if aml.blocked:
|
|
|
|
block = "X"
|
2012-11-23 15:42:33 +00:00
|
|
|
mel[aml.id] = "<TR>" + strbegin + str(aml.date) + strend + strbegin + aml.ref + strend + strbegin + str(date) + strend + strbegin + str(aml.result) + strend + strbegin + block + strend + "</TR>"
|
|
|
|
if (aml.company_id.id != user.company_id.id):
|
|
|
|
mel[aml.id] = ""
|
|
|
|
else:
|
|
|
|
total += aml.result
|
2012-11-08 14:14:57 +00:00
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
</tr>
|
|
|
|
% for aml in amls:
|
|
|
|
${mel[aml.id]}
|
2012-11-06 17:15:22 +00:00
|
|
|
% endfor
|
2012-11-08 14:14:57 +00:00
|
|
|
|
|
|
|
</table>
|
2012-11-23 15:42:33 +00:00
|
|
|
<center>Amount due: ${total} ${object.company_id.currency_id.name} </center>
|
2012-11-06 17:15:22 +00:00
|
|
|
<br/>
|
2012-11-23 15:42:33 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
</div>
|
|
|
|
]]></field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--Mail template level 1 -->
|
|
|
|
<record id="email_template_account_followup_level1" model="email.template">
|
2012-11-12 17:38:57 +00:00
|
|
|
<field name="name">Follow-up of overdue invoices level 1</field>
|
2012-11-06 17:15:22 +00:00
|
|
|
<field name="email_from">${user.email or ''}</field>
|
2012-11-08 14:14:57 +00:00
|
|
|
<field name="subject">${object.company_id.name} Payments Follow-up</field>
|
2012-11-06 17:15:22 +00:00
|
|
|
<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>
|
|
|
|
We are disappointed to see that despite sending a reminder, that your account is now seriously overdue.
|
|
|
|
It is essential that immediate payment is made, otherwise we will have to consider placing a stop on your account
|
|
|
|
which means that we will no longer be able to supply your company with (goods/services).
|
|
|
|
Please, take appropriate measures in order to carry out this payment in the next 8 days.
|
|
|
|
If there is a problem with paying invoice that we are not aware of, do not hesitate to contact our accounting
|
|
|
|
department at (+32).10.68.94.39. so that we can resolve the matter quickly.
|
|
|
|
Details of due payments is printed below.
|
|
|
|
</p>
|
|
|
|
<br/>
|
|
|
|
Best Regards,
|
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<br/>
|
|
|
|
${user.name}
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
2012-11-06 17:15:22 +00:00
|
|
|
|
2012-11-23 15:42:33 +00:00
|
|
|
|
|
|
|
<table border="2" width=100%>
|
2012-11-06 17:15:22 +00:00
|
|
|
|
|
|
|
<tr>
|
2012-11-23 15:42:33 +00:00
|
|
|
<td>Invoice date</td>
|
|
|
|
<td>Reference</td>
|
2012-11-08 14:14:57 +00:00
|
|
|
<td>Due date</td>
|
2012-11-06 17:15:22 +00:00
|
|
|
<td>Amount</td>
|
|
|
|
<td>Lit.</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<%
|
2012-11-23 15:42:33 +00:00
|
|
|
amls = object.unreconciled_aml_ids
|
2012-11-08 14:14:57 +00:00
|
|
|
mel = {}
|
2012-11-23 15:42:33 +00:00
|
|
|
total = 0
|
|
|
|
for aml in amls:
|
2012-11-08 14:14:57 +00:00
|
|
|
strbegin = "<TD> "
|
|
|
|
strend = "</TD> "
|
|
|
|
date = False
|
|
|
|
if aml.date_maturity:
|
|
|
|
date = aml.date_maturity
|
|
|
|
if aml.date_maturity <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
if aml.date <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
strbegin = "<TD>"
|
|
|
|
strend = "</TD>"
|
|
|
|
date = aml.date
|
|
|
|
block = " "
|
|
|
|
if aml.blocked:
|
|
|
|
block = "X"
|
2012-11-23 15:42:33 +00:00
|
|
|
mel[aml.id] = "<TR>" + strbegin + str(aml.date) + strend + strbegin + aml.ref + strend + strbegin + str(date) + strend + strbegin + str(aml.result) + strend + strbegin + block + strend + "</TR>"
|
|
|
|
if (aml.company_id.id != user.company_id.id):
|
|
|
|
mel[aml.id] = ""
|
|
|
|
else:
|
|
|
|
total += aml.result
|
2012-11-08 14:14:57 +00:00
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
</tr>
|
|
|
|
% for aml in amls:
|
|
|
|
${mel[aml.id]}
|
2012-11-06 17:15:22 +00:00
|
|
|
% endfor
|
2012-11-08 14:14:57 +00:00
|
|
|
|
|
|
|
</table>
|
2012-11-23 15:42:33 +00:00
|
|
|
<center>Amount due: ${total} ${object.company_id.currency_id.name} </center>
|
2012-11-06 17:15:22 +00:00
|
|
|
<br/>
|
2012-11-23 15:42:33 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
</div>
|
|
|
|
]]></field>
|
|
|
|
</record>
|
2012-10-25 09:15:44 +00:00
|
|
|
<!--Email template -->
|
2012-11-02 09:36:31 +00:00
|
|
|
<record id="email_template_account_followup_level2" model="email.template">
|
2012-11-12 17:38:57 +00:00
|
|
|
<field name="name">Follow-up of overdue invoices level 2</field>
|
2012-11-02 09:36:31 +00:00
|
|
|
<field name="email_from">${user.email or ''}</field>
|
2012-11-08 14:14:57 +00:00
|
|
|
<field name="subject">${object.company_id.name} Payments Follow-up</field>
|
2012-10-25 09:15:44 +00:00
|
|
|
<field name="email_to">${object.email}</field>
|
2012-10-26 15:11:25 +00:00
|
|
|
<field name="lang">${object.lang}</field>
|
2012-10-25 09:15:44 +00:00
|
|
|
<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); ">
|
2012-10-29 12:41:18 +00:00
|
|
|
|
2012-11-02 09:36:31 +00:00
|
|
|
<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,
|
2012-10-30 11:05:21 +00:00
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<br/>
|
|
|
|
${user.name}
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
2012-10-30 11:05:21 +00:00
|
|
|
|
2012-11-23 15:42:33 +00:00
|
|
|
|
|
|
|
<table border="2" width=100%>
|
2012-10-30 11:05:21 +00:00
|
|
|
|
|
|
|
<tr>
|
2012-11-23 15:42:33 +00:00
|
|
|
<td>Invoice date</td>
|
|
|
|
<td>Reference</td>
|
2012-11-08 14:14:57 +00:00
|
|
|
<td>Due date</td>
|
2012-11-02 09:36:31 +00:00
|
|
|
<td>Amount</td>
|
|
|
|
<td>Lit.</td>
|
2012-10-30 11:05:21 +00:00
|
|
|
</tr>
|
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<%
|
2012-11-23 15:42:33 +00:00
|
|
|
amls = object.unreconciled_aml_ids
|
2012-11-08 14:14:57 +00:00
|
|
|
mel = {}
|
2012-11-23 15:42:33 +00:00
|
|
|
total = 0
|
|
|
|
for aml in amls:
|
2012-11-08 14:14:57 +00:00
|
|
|
strbegin = "<TD> "
|
|
|
|
strend = "</TD> "
|
|
|
|
date = False
|
|
|
|
if aml.date_maturity:
|
|
|
|
date = aml.date_maturity
|
|
|
|
if aml.date_maturity <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
if aml.date <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
strbegin = "<TD>"
|
|
|
|
strend = "</TD>"
|
|
|
|
date = aml.date
|
|
|
|
block = " "
|
|
|
|
if aml.blocked:
|
|
|
|
block = "X"
|
2012-11-23 15:42:33 +00:00
|
|
|
mel[aml.id] = "<TR>" + strbegin + str(aml.date) + strend + strbegin + aml.ref + strend + strbegin + str(date) + strend + strbegin + str(aml.result) + strend + strbegin + block + strend + "</TR>"
|
|
|
|
if (aml.company_id.id != user.company_id.id):
|
|
|
|
mel[aml.id] = ""
|
|
|
|
else:
|
|
|
|
total += aml.result
|
2012-11-08 14:14:57 +00:00
|
|
|
%>
|
|
|
|
<tr>
|
|
|
|
</tr>
|
|
|
|
% for aml in amls:
|
|
|
|
${mel[aml.id]}
|
2012-10-30 11:05:21 +00:00
|
|
|
% endfor
|
2012-11-08 14:14:57 +00:00
|
|
|
|
|
|
|
</table>
|
2012-11-23 15:42:33 +00:00
|
|
|
<center>Amount due: ${total} ${object.company_id.currency_id.name} </center>
|
2012-10-25 09:15:44 +00:00
|
|
|
<br/>
|
2012-11-23 15:42:33 +00:00
|
|
|
|
2012-10-25 09:15:44 +00:00
|
|
|
</div>
|
|
|
|
]]></field>
|
2009-09-15 09:46:27 +00:00
|
|
|
</record>
|
2012-11-06 17:15:22 +00:00
|
|
|
|
|
|
|
<!-- Default follow up message -->
|
|
|
|
|
|
|
|
<record id="email_template_account_followup_default" model="email.template">
|
|
|
|
<field name="name">Default follow-up of overdue invoices</field>
|
|
|
|
<field name="email_from">${user.email or ''}</field>
|
|
|
|
<field name="subject">${object.company_id.name} Payments Follow-up</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>
|
|
|
|
Exception made if there was a mistake of ours, it seems that the following amount stays unpaid. Please, take
|
|
|
|
appropriate measures in order to carry out this payment in the next 8 days.
|
|
|
|
Would your payment have been carried out after this mail was sent, please ignore this message. Do not hesitate to
|
|
|
|
contact our accounting department at (+32).10.68.94.39.
|
|
|
|
</p>
|
|
|
|
<br/>
|
|
|
|
Best Regards,
|
|
|
|
</br>
|
|
|
|
</br>
|
2012-11-08 14:14:57 +00:00
|
|
|
<br/>
|
|
|
|
${user.name}
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
2012-11-23 15:42:33 +00:00
|
|
|
|
|
|
|
<table border="2" width=100%>
|
2012-11-08 14:14:57 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
<tr>
|
2012-11-23 15:42:33 +00:00
|
|
|
<td>Invoice date</td>
|
|
|
|
<td>Reference</td>
|
2012-11-08 14:14:57 +00:00
|
|
|
<td>Due date</td>
|
2012-11-06 17:15:22 +00:00
|
|
|
<td>Amount</td>
|
|
|
|
<td>Lit.</td>
|
|
|
|
</tr>
|
|
|
|
|
2012-11-08 14:14:57 +00:00
|
|
|
<%
|
2012-11-23 15:42:33 +00:00
|
|
|
amls = object.unreconciled_aml_ids
|
2012-11-08 14:14:57 +00:00
|
|
|
mel = {}
|
2012-11-23 15:42:33 +00:00
|
|
|
total = 0
|
|
|
|
for aml in amls:
|
2012-11-08 14:14:57 +00:00
|
|
|
strbegin = "<TD> "
|
|
|
|
strend = "</TD> "
|
|
|
|
date = False
|
|
|
|
if aml.date_maturity:
|
|
|
|
date = aml.date_maturity
|
|
|
|
if aml.date_maturity <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
if aml.date <= ctx['current_date'] and aml.debit > 0:
|
|
|
|
strbegin = "<TD><B>"
|
|
|
|
strend = "</B></TD>"
|
|
|
|
else:
|
|
|
|
strbegin = "<TD>"
|
|
|
|
strend = "</TD>"
|
|
|
|
date = aml.date
|
|
|
|
block = " "
|
|
|
|
if aml.blocked:
|
|
|
|
block = "X"
|
2012-11-23 15:42:33 +00:00
|
|
|
mel[aml.id] = "<TR>" + strbegin + str(aml.date) + strend + strbegin + aml.ref + strend + strbegin + str(date) + strend + strbegin + str(aml.result) + strend + strbegin + block + strend + "</TR>"
|
|
|
|
if (aml.company_id.id != user.company_id.id):
|
|
|
|
mel[aml.id] = ""
|
|
|
|
else:
|
|
|
|
total += aml.result
|
2012-11-08 14:14:57 +00:00
|
|
|
%>
|
2012-11-06 17:15:22 +00:00
|
|
|
<tr>
|
2012-11-08 14:14:57 +00:00
|
|
|
</tr>
|
|
|
|
% for aml in amls:
|
|
|
|
${mel[aml.id]}
|
2012-11-06 17:15:22 +00:00
|
|
|
% endfor
|
2012-11-08 14:14:57 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
</table>
|
2012-11-23 15:42:33 +00:00
|
|
|
<center>Amount due: ${total} ${object.company_id.currency_id.name} </center>
|
2012-11-06 17:15:22 +00:00
|
|
|
<br/>
|
2012-11-23 15:42:33 +00:00
|
|
|
|
2012-11-06 17:15:22 +00:00
|
|
|
</div>
|
|
|
|
]]></field>
|
2009-09-15 09:46:27 +00:00
|
|
|
</record>
|
2012-11-06 17:15:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-15 09:46:27 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|