From 4cbc9b8d611aba925676deb2763f829c7ae15bcb Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Fri, 7 Sep 2018 12:21:55 +0200 Subject: [PATCH] [FIX] account: translate default overdue_msg opw-1880132 Closes #26852 --- addons/account/i18n/account.pot | 13 +++++++++++++ addons/account/models/company.py | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 617430fad62..cf6c74c5edf 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -3263,6 +3263,19 @@ msgstr "" msgid "Day(s) after the invoice date" msgstr "" +#. module: account +#: code:addons/account/models/company.py:44 +#, python-format +msgid "Dear Sir/Madam,\n" +"\n" +"Our records indicate that some payments on your account are still due. Please find details below.\n" +"If the amount has already been paid, please disregard this notice. Otherwise, please forward us the total amount stated below.\n" +"If you have any queries regarding your account, Please contact us.\n" +"\n" +"Thank you in advance for your cooperation.\n" +"Best Regards," +msgstr "" + #. module: account #: model:ir.model.fields,field_description:account.field_account_move_line_debit #: model:ir.ui.view,arch_db:account.report_financial diff --git a/addons/account/models/company.py b/addons/account/models/company.py index 5dd2568d708..80cb1b4e31d 100644 --- a/addons/account/models/company.py +++ b/addons/account/models/company.py @@ -41,14 +41,14 @@ class ResCompany(models.Model): property_stock_valuation_account_id = fields.Many2one('account.account', string="Account Template for Stock Valuation") bank_journal_ids = fields.One2many('account.journal', 'company_id', domain=[('type', '=', 'bank')], string='Bank Journals') overdue_msg = fields.Text(string='Overdue Payments Message', translate=True, - default='''Dear Sir/Madam, + default=lambda t: _('''Dear Sir/Madam, Our records indicate that some payments on your account are still due. Please find details below. If the amount has already been paid, please disregard this notice. Otherwise, please forward us the total amount stated below. If you have any queries regarding your account, Please contact us. Thank you in advance for your cooperation. -Best Regards,''') +Best Regards,''')) @api.multi def _check_lock_dates(self, vals):