diff --git a/account_credit_control/data.xml b/account_credit_control/data.xml index 9d284fa75..f01c91253 100644 --- a/account_credit_control/data.xml +++ b/account_credit_control/data.xml @@ -13,35 +13,75 @@ %endif
+ <% + def carriage_returns(text): + return text.replace('\n', '
') + %> + +

+ Credit Control: ${object.current_policy_level.name or 'n/a' } +

+

Dear ${object.partner_id.name or ''},

-
${object.current_policy_level.custom_text}
+

${object.current_policy_level.custom_text | carriage_returns }

- +
+
+ +
- - - - + + + + %for line in object.credit_control_line_ids: - - - + + + %if line.invoice_id: %else: @@ -56,7 +96,6 @@

Thank you for choosing ${object.company_id.name}!

- -- more info here --

${object.user_id.name} ${object.user_id.email and '<%s>'%(object.user_id.email) or ''}
${object.company_id.name}
% if object.company_id.street: @@ -106,10 +145,8 @@ email Dear Sir or Madam, -Our records indicate that we have not received the payment of the -above mentioned invoice (copy attached for your convenience). If it -has already been sent, please disregard this notice. If not, please -proceed with payment within 10 days. +Our records indicate that we have not received the payment of the above mentioned invoice (copy attached for your convenience). +If it has already been sent, please disregard this notice. If not, please proceed with payment within 10 days. Thank you in advance for your anticipated cooperation in this matter. @@ -128,10 +165,8 @@ Best regards, email Dear Sir or Madam, -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. If it has already been sent, please disregard -this notice. If not, please proceed with payment within 5 days. +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. +If it has already been sent, please disregard this notice. If not, please proceed with payment within 5 days. Thank you in advance for your anticipated cooperation in this matter. @@ -150,12 +185,9 @@ Best regards, letter Dear Sir or Madam, -Our records indicate that we still have not received the payment of -the above mentioned invoice (copy attached) despite our two reminders. -If payment have already been sent, please disregard this notice. If -not, please proceed with payment. If your payment has not been -received in the next 5 days, your file will be transfered to our debt -collection agency. +Our records indicate that we still have not received the payment of the above mentioned invoice (copy attached) despite our two reminders. +If payment have already been sent, please disregard this notice. If not, please proceed with payment. +If your payment has not been received in the next 5 days, your file will be transfered to our debt collection agency. Should you need us to arrange a payment plan for you, please advise. A customer account statement is enclosed for you convenience. diff --git a/account_credit_control/report/credit_control_summary.html.mako b/account_credit_control/report/credit_control_summary.html.mako index e3a597cd0..a45c5b775 100644 --- a/account_credit_control/report/credit_control_summary.html.mako +++ b/account_credit_control/report/credit_control_summary.html.mako @@ -126,10 +126,18 @@ tr.line { %for comm in objects : -

+ <% setLang(comm.partner_id.lang) %> +
Summary
Date dueAmount dueAmount balanceInvoice numberDate dueAmount dueAmount balanceInvoice number
${line.date_due}${line.amount_due}${line.balance_due}${line.date_due}${line.amount_due}${line.balance_due}${line.invoice_id.number}
+ %if comm.partner_id.parent_id: + + + <% address_lines = comm.partner_id.contact_address.split("\n")[1:] %> + %else: - %for part in comm.partner_id.contact_address.split("\n")[1:]: + <% address_lines = comm.partner_id.contact_address.split("\n") %> + %endif + %for part in address_lines: %if part: %endif
${comm.partner_id.parent_id.name or ''}
${comm.partner_id.title and comm.partner_id.title.name or ''} ${comm.partner_id.name }
${comm.partner_id.title and comm.partner_id.title.name or ''} ${comm.partner_id.name }
${part}