[I18N] account: add missing translations
Before this commit not all messages where translated/translatable. By adding _() to them they're now translatable. This means that if somebody puts OdooBot to another language the messages would be translated. closes odoo/odoo#65787 X-original-commit: 355ae0d59a446a87d195b6749e66cd732f21ae2f Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
@@ -8030,6 +8030,7 @@ msgstr ""
|
||||
#. module: account
|
||||
#: code:addons/account/models/account_move.py:0
|
||||
#: code:addons/account/models/account_move.py:0
|
||||
#: code:addons/account/models/ir_actions_report.py:0
|
||||
#, python-format
|
||||
msgid "Only invoices could be printed."
|
||||
msgstr ""
|
||||
@@ -11842,6 +11843,19 @@ msgstr ""
|
||||
msgid "The holder of a journal's bank account must be the company (%s)."
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: code:addons/account/models/account_move.py:0
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The invoice already contains lines, it was not updated from the attachment."
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: code:addons/account/models/account_move.py:0
|
||||
#, python-format
|
||||
msgid "The invoice is not a draft, it was not updated from the attachment."
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: code:addons/account/models/account_bank_statement.py:0
|
||||
#, python-format
|
||||
@@ -13862,6 +13876,7 @@ msgstr ""
|
||||
#. module: account
|
||||
#: code:addons/account/models/account_move.py:0
|
||||
#: code:addons/account/wizard/account_automatic_entry_wizard.py:0
|
||||
#: code:addons/account/wizard/account_automatic_entry_wizard.py:0
|
||||
#, python-format
|
||||
msgid "[Not set]"
|
||||
msgstr ""
|
||||
|
||||
@@ -2900,13 +2900,13 @@ class AccountMove(models.Model):
|
||||
attachments = self.env['ir.attachment'].browse(attachment_ids)
|
||||
odoobot = self.env.ref('base.partner_root')
|
||||
if attachments and self.state != 'draft':
|
||||
self.message_post(body='The invoice is not a draft, it was not updated from the attachment.',
|
||||
self.message_post(body=_('The invoice is not a draft, it was not updated from the attachment.'),
|
||||
message_type='comment',
|
||||
subtype_xmlid='mail.mt_note',
|
||||
author_id=odoobot.id)
|
||||
return res
|
||||
if attachments and self.line_ids:
|
||||
self.message_post(body='The invoice already contains lines, it was not updated from the attachment.',
|
||||
self.message_post(body=_('The invoice already contains lines, it was not updated from the attachment.'),
|
||||
message_type='comment',
|
||||
subtype_xmlid='mail.mt_note',
|
||||
author_id=odoobot.id)
|
||||
|
||||
Reference in New Issue
Block a user