~acsone-openerp/account-financial-tools/account_credit_control_portal_portal_lp1248906

« back to all changes in this revision

Viewing changes to account_credit_control/data.xml

  • Committer: Joel Grand-Guillaume
  • Author(s): nicolas.bessi at camptocamp
  • Date: 2013-09-18 11:37:52 UTC
  • mfrom: (109.2.47 port-of-credit-control)
  • Revision ID: joel.grandguillaume@camptocamp.com-20130918113752-19pzw705wiu5k98z
[MRG] Port of credit control to version 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
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'" />
13
 
      %if mode != 'pdf':
14
 
      <!-- your css here -->
15
 
      <style type="text/css">
16
 
      </style>
17
 
      %endif
18
 
      <div>
19
 
 
20
 
      <p>Dear ${object.partner_id.name  or ''},</p>
21
 
 
22
 
      <pre class="custom_text">${object.current_policy_level.custom_text}</pre>
23
 
 
24
 
      <table style="border: 1px solid" width="100%">
25
 
      <caption><b>Summary</b></caption>
26
 
      <tr>
27
 
        <th>date due</th>
28
 
         <th>Amount due</th>
29
 
         <th>Amount balance</th>
30
 
         <th>Invoice number</th>
31
 
      </tr>
32
 
%for line in object.credit_control_line_ids:
33
 
      <tr>
34
 
        <td>${line.date_due}</td>
35
 
        <td>${line.amount_due}</td>
36
 
        <td>${line.balance_due}</td>
37
 
      %if line.invoice_id:
38
 
          <td>${line.invoice_id.number}</td>
39
 
      %else:
40
 
          <td>n/a</td>
41
 
      %endif
42
 
%endfor
43
 
      </table>
44
 
      <br/>
45
 
      <br/>
46
 
 
47
 
      <p>If you have any question, do not hesitate to contact us.</p>
48
 
 
49
 
      <p>Thank you for choosing ${object.company_id.name}! </p>
50
 
 
51
 
      -- more info here --
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/>
56
 
 
57
 
      % endif
58
 
 
59
 
      % if object.company_id.street2:
60
 
      ${object.company_id.street2}<br/>
61
 
      % endif
62
 
      % if object.company_id.city or object.company_id.zip:
63
 
      ${object.company_id.zip or ''} ${object.company_id.city or ''}<br/>
64
 
      % endif
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/>
67
 
      % endif
68
 
      % if object.company_id.phone:
69
 
      Phone: ${object.company_id.phone}<br/>
70
 
      % endif
71
 
      % if object.company_id.website:
72
 
      ${object.company_id.website or ''}<br/>
73
 
      % endif
 
14
      Dear ${object.get_contact_address().name  or ''}
 
15
      <br/>
 
16
      <br/>
 
17
      ${object.current_policy_level.custom_mail_text}
74
18
      ]]></field>
75
19
    </record>
76
20
 
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,
100
 
 
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.
105
 
 
106
 
Thank you in advance for your anticipated cooperation in this matter.
107
 
 
108
 
Best regards,
109
 
</field>
 
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.
 
45
 
 
46
Thank you in advance for your anticipated cooperation in this matter.
 
47
 
 
48
Best regards
 
49
      </field>
 
50
 
 
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).
 
52
 
 
53
If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days.
 
54
 
 
55
Thank you in advance for your anticipated cooperation in this matter.
 
56
 
 
57
Best regards
 
58
      </field>
110
59
    </record>
111
60
 
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,
122
 
 
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.
127
 
 
128
 
Thank you in advance for your anticipated cooperation in this matter.
129
 
 
130
 
Best regards,
131
 
</field>
 
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.
 
72
 
 
73
Thank you in advance for your anticipated cooperation in this matter.
 
74
 
 
75
Best regards
 
76
      </field>
 
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.
 
79
 
 
80
Thank you in advance for your anticipated cooperation in this matter.
 
81
 
 
82
Best regards
 
83
      </field>
132
84
    </record>
133
85
 
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,
144
 
 
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
150
 
collection agency.
151
 
 
152
 
Should you need us to arrange a payment plan for you, please advise.
153
 
A customer account statement is enclosed for you convenience.
154
 
 
155
 
Thank you in advance for your anticipated cooperation in this matter.
156
 
 
157
 
Best regards,
158
 
</field>
 
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.
 
99
 
 
100
        Should you need us to arrange a payment plan for you, please advise.
 
101
        A customer account statement is enclosed for you convenience.
 
102
 
 
103
        Thank you in advance for your anticipated cooperation in this matter.
 
104
 
 
105
        Best regards
 
106
      </field>
 
107
 
 
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.
 
111
 
 
112
        Should you need us to arrange a payment plan for you, please advise.
 
113
        A customer account statement is enclosed for you convenience.
 
114
 
 
115
        Thank you in advance for your anticipated cooperation in this matter.
 
116
 
 
117
        Best regards
 
118
      </field>
159
119
    </record>
160
120
 
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,
177
 
 
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.
 
138
 
 
139
        Thank you in advance for your anticipated cooperation in this matter.
 
140
 
 
141
        Best regards
 
142
      </field>
 
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.
182
145
 
183
146
Thank you in advance for your anticipated cooperation in this matter.
184
147
 
185
 
Best regards,
186
 
</field>
 
148
Best regards
 
149
      </field>
187
150
    </record>
188
151
 
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,
199
 
 
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
205
 
collection agency.
206
 
 
207
 
Should you need us to arrange a payment plan for you, please advise.
208
 
A customer account statement is enclosed for you convenience.
209
 
 
210
 
Thank you in advance for your anticipated cooperation in this matter.
211
 
 
212
 
Best regards,
213
 
</field>
 
161
      <field name="custom_text">Our records indicate that we still have not received the payment of the above mentioned invoice despite our reminder.
 
162
 
 
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
 
165
        collection agency.
 
166
 
 
167
        Should you need us to arrange a payment plan for you, please advise.
 
168
        A customer account statement is enclosed for you convenience.
 
169
 
 
170
        Thank you in advance for your anticipated cooperation in this matter.
 
171
 
 
172
        Best regards
 
173
      </field>
 
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.
 
175
 
 
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
 
178
        collection agency.
 
179
 
 
180
        Should you need us to arrange a payment plan for you, please advise.
 
181
        A customer account statement is enclosed for you convenience.
 
182
 
 
183
        Thank you in advance for your anticipated cooperation in this matter.
 
184
 
 
185
        Best regards
 
186
      </field>
214
187
    </record>
215
188
 
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"/>
219
192
    </record>
220
193
 
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"/>
224
197
    </record>
225
198
 
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"/>
229
202
    </record>
230
203
 
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"/>
233
206
    </record>
234
207
 
235
208
  </data>