4
4
<record id="email_template_credit_control_base" model="email.template">
5
5
<field name="name">Credit Control Email</field>
6
6
<field name="email_from">noreply@localhost</field>
7
<field name="subject">Credit Control: (${object.current_policy_level.name or 'n/a' })</field>
7
<field name="subject">Credit Control: (${object.current_policy_level.name or 'n/a'})</field>
8
8
<field name="email_to">${object.get_email() or ''}</field>
9
9
<field name="model_id" ref="model_credit_control_communication"/>
10
10
<field name="auto_delete" eval="True"/>
11
<field name="lang">${object.get_contact_address().lang or 'en_US'}</field>
12
<field name="report_template" ref="report_webkit_html"/>
11
13
<field name="body_html"><![CDATA[
12
<%page args="object, user=None, ctx=None, quote=None, format_exception=True, mode='email'" />
14
<!-- your css here -->
15
<style type="text/css">
20
<p>Dear ${object.partner_id.name or ''},</p>
22
<pre class="custom_text">${object.current_policy_level.custom_text}</pre>
24
<table style="border: 1px solid" width="100%">
25
<caption><b>Summary</b></caption>
29
<th>Amount balance</th>
30
<th>Invoice number</th>
32
%for line in object.credit_control_line_ids:
34
<td>${line.date_due}</td>
35
<td>${line.amount_due}</td>
36
<td>${line.balance_due}</td>
38
<td>${line.invoice_id.number}</td>
47
<p>If you have any question, do not hesitate to contact us.</p>
49
<p>Thank you for choosing ${object.company_id.name}! </p>
52
<p>${object.user_id.name} ${object.user_id.user_email and '<%s>'%(object.user_id.user_email) or ''}<br/>
53
${object.company_id.name}<br/>
54
% if object.company_id.street:
55
${object.company_id.street or ''}<br/>
59
% if object.company_id.street2:
60
${object.company_id.street2}<br/>
62
% if object.company_id.city or object.company_id.zip:
63
${object.company_id.zip or ''} ${object.company_id.city or ''}<br/>
65
% if object.company_id.country_id:
66
${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
68
% if object.company_id.phone:
69
Phone: ${object.company_id.phone}<br/>
71
% if object.company_id.website:
72
${object.company_id.website or ''}<br/>
14
Dear ${object.get_contact_address().name or ''}
17
${object.current_policy_level.custom_mail_text}
96
40
<field name="email_template_id" ref="email_template_credit_control_base"/>
97
41
<field name="policy_id" ref="credit_control_3_time"/>
98
42
<field name="channel">email</field>
99
<field name="custom_text">Dear Sir or Madam,
101
Our records indicate that we have not received the payment of the
102
above mentioned invoice (copy attached for your convenience). If it
103
has already been sent, please disregard this notice. If not, please
104
proceed with payment within 10 days.
106
Thank you in advance for your anticipated cooperation in this matter.
43
<field name="custom_text">Our records indicate that we have not received the payment of the above mentioned invoice.
44
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.
46
Thank you in advance for your anticipated cooperation in this matter.
51
<field name="custom_mail_text">Our records indicate that we have not received the payment of the above mentioned invoice (copy attached for your convenience).
53
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.
55
Thank you in advance for your anticipated cooperation in this matter.
112
61
<record model="credit.control.policy.level"
118
67
<field name="email_template_id" ref="email_template_credit_control_base"/>
119
68
<field name="policy_id" ref="credit_control_3_time"/>
120
69
<field name="channel">email</field>
121
<field name="custom_text">Dear Sir or Madam,
123
Our records indicate that we have not yet received the payment of the
124
above mentioned invoice (copy attached for your convenience) despite
125
our first reminder. If it has already been sent, please disregard
126
this notice. If not, please proceed with payment within 5 days.
128
Thank you in advance for your anticipated cooperation in this matter.
70
<field name="custom_text">Our records indicate that we have not yet received the payment of the above mentioned invoice despite our first reminder.
71
If it has already been sent, please disregard this notice. If not, please proceed with payment within 5 days.
73
Thank you in advance for your anticipated cooperation in this matter.
77
<field name="custom_mail_text">Our records indicate that we have not yet received the payment of the above mentioned invoice (copy attached for your convenience) despite our first reminder.
78
If it has already been sent, please disregard this notice. If not, please proceed with payment within 5 days.
80
Thank you in advance for your anticipated cooperation in this matter.
134
86
<record model="credit.control.policy.level"
140
92
<field name="email_template_id" ref="email_template_credit_control_base"/>
141
93
<field name="policy_id" ref="credit_control_3_time"/>
142
94
<field name="channel">letter</field>
143
<field name="custom_text">Dear Sir or Madam,
145
Our records indicate that we still have not received the payment of
146
the above mentioned invoice (copy attached) despite our two reminders.
147
If payment have already been sent, please disregard this notice. If
148
not, please proceed with payment. If your payment has not been
149
received in the next 5 days, your file will be transfered to our debt
152
Should you need us to arrange a payment plan for you, please advise.
153
A customer account statement is enclosed for you convenience.
155
Thank you in advance for your anticipated cooperation in this matter.
95
<field name="custom_text">
96
Our records indicate that we still have not received the payment of the above mentioned invoice despite our two reminders.
97
If payment have already been sent, please disregard this notice. If not, please proceed with payment.
98
If your payment has not been received in the next 5 days, your file will be transfered to our debt collection agency.
100
Should you need us to arrange a payment plan for you, please advise.
101
A customer account statement is enclosed for you convenience.
103
Thank you in advance for your anticipated cooperation in this matter.
108
<field name="custom_mail_text">Our records indicate that we still have not received the payment of the above mentioned invoice (copy attached) despite our two reminders.
109
If payment have already been sent, please disregard this notice. If not, please proceed with payment.
110
If your payment has not been received in the next 5 days, your file will be transfered to our debt collection agency.
112
Should you need us to arrange a payment plan for you, please advise.
113
A customer account statement is enclosed for you convenience.
115
Thank you in advance for your anticipated cooperation in this matter.
161
121
<!-- policy 2 -->
173
133
<field name="email_template_id" ref="email_template_credit_control_base"/>
174
134
<field name="policy_id" ref="credit_control_2_time"/>
175
135
<field name="channel">email</field>
176
<field name="custom_text">Dear Sir or Madam,
178
Our records indicate that we have not received the payment of the
179
above mentioned invoice (copy attached for your convenience). If it
180
has already been sent, please disregard this notice. If not, please
181
proceed with payment within 10 days.
136
<field name="custom_text">Our records indicate that we have not received the payment of the above mentioned invoice.
137
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.
139
Thank you in advance for your anticipated cooperation in this matter.
143
<field name="custom_mail_text">Our records indicate that we have not received the payment of the above mentioned invoice (copy attached for your convenience).
144
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.
183
146
Thank you in advance for your anticipated cooperation in this matter.
189
152
<record model="credit.control.policy.level"
195
158
<field name="email_template_id" ref="email_template_credit_control_base"/>
196
159
<field name="policy_id" ref="credit_control_2_time"/>
197
160
<field name="channel">letter</field>
198
<field name="custom_text">Dear Sir or Madam,
200
Our records indicate that we still have not received the payment of
201
the above mentioned invoice (copy attached) despite our reminder.
202
If payment have already been sent, please disregard this notice. If
203
not, please proceed with payment. If your payment has not been
204
received in the next 5 days, your file will be transfered to our debt
207
Should you need us to arrange a payment plan for you, please advise.
208
A customer account statement is enclosed for you convenience.
210
Thank you in advance for your anticipated cooperation in this matter.
161
<field name="custom_text">Our records indicate that we still have not received the payment of the above mentioned invoice despite our reminder.
163
If payment have already been sent, please disregard this notice. If not, please proceed with payment.
164
If your payment has not been received in the next 5 days, your file will be transfered to our debt
167
Should you need us to arrange a payment plan for you, please advise.
168
A customer account statement is enclosed for you convenience.
170
Thank you in advance for your anticipated cooperation in this matter.
174
<field name="custom_mail_text">Our records indicate that we still have not received the payment of the above mentioned invoice (copy attached) despite our reminder.
176
If payment have already been sent, please disregard this notice. If not, please proceed with payment.
177
If your payment has not been received in the next 5 days, your file will be transfered to our debt
180
Should you need us to arrange a payment plan for you, please advise.
181
A customer account statement is enclosed for you convenience.
183
Thank you in advance for your anticipated cooperation in this matter.
216
189
<record id="group_account_credit_control_manager" model="res.groups">
217
<field name="name">Credit Control Manager</field>
218
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
190
<field name="name">Credit Control Manager</field>
191
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
221
194
<record id="group_account_credit_control_user" model="res.groups" context="{'noadmin':True}">
222
<field name="name">Credit Control User</field>
223
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
195
<field name="name">Credit Control User</field>
196
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
226
199
<record id="group_account_credit_control_info" model="res.groups" context="{'noadmin':True}">
227
<field name="name">Credit Control Info</field>
228
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
200
<field name="name">Credit Control Info</field>
201
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
231
204
<record id="base.main_company" model="res.company">
232
<field name="credit_policy_id" ref="credit_control_3_time"/>
205
<field name="credit_policy_id" ref="credit_control_3_time"/>