From fb9685aad693b1a589323118504c7a8ab5d5adc5 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Thu, 27 Jun 2013 13:55:53 +0200 Subject: [PATCH] [IMP] account_credit_control - add some css to reminder report and set texts taking the whole width of the document --- account_credit_control/data.xml | 91 ++++++++++++++++++++++----------- 1 file changed, 61 insertions(+), 30 deletions(-) diff --git a/account_credit_control/data.xml b/account_credit_control/data.xml index 01cf85999..793b5bb23 100644 --- a/account_credit_control/data.xml +++ b/account_credit_control/data.xml @@ -13,35 +13,73 @@ %endif
+ <% + def carriage_returns(text): + return text.replace('\n', '
') + %> +
+
+

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: @@ -105,10 +143,8 @@ emailDear 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. @@ -127,10 +163,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. @@ -149,12 +183,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.
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}