diff --git a/account_partner_aged_statement_webkit/__openerp__.py b/account_partner_aged_statement_webkit/__openerp__.py index 969710ae..acbb8d47 100644 --- a/account_partner_aged_statement_webkit/__openerp__.py +++ b/account_partner_aged_statement_webkit/__openerp__.py @@ -48,6 +48,9 @@ informations : * the list of invoices per period * the invoices are also shown with the foreign currency + Both messages, in the PDF and the email are taken from the Overdue Payments + Message defined on the Company's configuration. + Contributors ------------ * Marc Cassuto (marc.cassuto@savoirfairelinux.com) diff --git a/account_partner_aged_statement_webkit/partner_aged_statement_data.xml b/account_partner_aged_statement_webkit/partner_aged_statement_data.xml index 9c6c7b54..d571dd5c 100644 --- a/account_partner_aged_statement_webkit/partner_aged_statement_data.xml +++ b/account_partner_aged_statement_webkit/partner_aged_statement_data.xml @@ -2,7 +2,7 @@ - + @@ -19,23 +19,21 @@ -

Dear Sir/Madam,

+ + % for line in user.company_id.overdue_msg.split('\n'): +

${line}

+ % endfor -

Our records indicate that some payments on your account are still due.
- Please find in the attached document your aged balance + ${user.name} +

- If the amount has already been paid, please disregard this notice. - Otherwise, please forward us the total amount stated below. -

  REFERENCES
  Total overdue amount: ${object.credit} ${user.company_id.currency_id.name}

-

If you have any question, do not hesitate to contact us.

-

Best Regards,



diff --git a/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py b/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py index 6d988b9e..94b5f6f3 100644 --- a/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py +++ b/account_partner_aged_statement_webkit/report/partner_aged_statement_report.py @@ -189,9 +189,8 @@ class PartnerAgedTrialReport(aged_trial_report): def _get_lines(self, form, partner): # self.query is used to get the lines in super()._get_lines self.query = "{0} AND l.partner_id = {1}".format( - self.orig_query, - partner.id, - ) + self.orig_query, + partner.id,) res = super(PartnerAgedTrialReport, self)._get_lines(form) self.query = self.orig_query return res