[FIX] account: translate default overdue_msg

opw-1880132

Closes #26852
This commit is contained in:
Mathieu Duckerts-Antoine
2018-09-12 16:52:29 +02:00
committed by Martin Trigaux
parent 55ab1ac691
commit 4cbc9b8d61
2 changed files with 15 additions and 2 deletions
+13
View File
@@ -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
+2 -2
View File
@@ -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):