diff --git a/addons/account_followup/account_followup.py b/addons/account_followup/account_followup.py index 9ff6d3be372..053561e21bb 100644 --- a/addons/account_followup/account_followup.py +++ b/addons/account_followup/account_followup.py @@ -49,9 +49,10 @@ class followup_line(osv.osv): 'followup_id': fields.many2one('account_followup.followup', 'Follow Ups', required=True, ondelete="cascade"), 'description': fields.text('Printed Message', translate=True), 'send_email':fields.boolean('Send email', help="When processing, it will send an email"), - 'send_letter':fields.boolean('Print email'), + 'send_letter':fields.boolean('Send letter'), 'phonecall':fields.boolean('Phone call'), - 'email_template_id':fields.many2one('email.template', 'Email template', required = False, ondelete='set null') + 'email_template_id':fields.many2one('email.template', 'Email template', required = False, ondelete='set null'), + 'email_body':fields.related('email_template_id', 'body_html', type='text', string="Email Message"), } _defaults = { 'start': 'days', @@ -244,7 +245,6 @@ class res_partner(osv.osv): #print partner_ids #print "Testing: " , fields.date.context_today(cr, uid, context) self.write(cr, uid, partner_ids, {'payment_next_action_date': fields.date.context_today(cr, uid, context),}, context) - diff --git a/addons/account_followup/account_followup_customers.xml b/addons/account_followup/account_followup_customers.xml index a88ba06e504..4865993ddda 100644 --- a/addons/account_followup/account_followup_customers.xml +++ b/addons/account_followup/account_followup_customers.xml @@ -109,7 +109,6 @@ - diff --git a/addons/account_followup/account_followup_data.xml b/addons/account_followup/account_followup_data.xml index 1fd6ecad696..b2fa4b67e90 100644 --- a/addons/account_followup/account_followup_data.xml +++ b/addons/account_followup/account_followup_data.xml @@ -5,9 +5,9 @@ - - Followup of outstanding accounts - ${object.user_id.email or ''} + + Followup of overdue invoices level 2 + ${user.email or ''} ${object.company_id.name} Followup ${object.email} ${object.lang} @@ -16,43 +16,55 @@ -

Hello${object.name and ' ' or ''},

- -

We see in our books that some accounts are not settled yet:

+

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

+

+ 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. +

+
+Best Regards, - +
- - - + + + + + - % for aml in object.accountmoveline_ids : - + + + % endfor -
DebitCreditReferenceInvoice dateReferenceMaturity dateAmountLit.
-${aml.debit} - -${aml.credit} +${aml.date} ${aml.ref} +% if aml.date_maturity and aml.date_maturity > fields.date.context_today(cr, uid, context): +${aml.date_maturity} +% else: +${aml.date} +% endif + +${aml.debit} + +% if aml.blocked: + X +% endif +
- - - -

-   REFERENCES
-   Order number: ${object.name}
-   Your contact: ${object.user_id.name} -

+
]]>
diff --git a/addons/account_followup/account_followup_view.xml b/addons/account_followup/account_followup_view.xml index 5fd4487ffd8..081d92e5416 100644 --- a/addons/account_followup/account_followup_view.xml +++ b/addons/account_followup/account_followup_view.xml @@ -19,10 +19,12 @@ account_followup.followup.line
- + + + @@ -33,7 +35,10 @@ - + + + +