[FIX] account: correctly translate the message

Introduced at 4eeaf6c0e2

closes odoo/odoo#34738

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2019-07-10 09:58:28 +00:00
parent 6d9fdb643d
commit 0481b06131
2 changed files with 11 additions and 4 deletions
+10 -3
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-21 11:06+0000\n"
"PO-Revision-Date: 2019-06-21 11:06+0000\n"
"POT-Creation-Date: 2019-07-10 09:57+0000\n"
"PO-Revision-Date: 2019-07-10 09:57+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -295,7 +295,8 @@ msgstr ""
#. module: account
#: model_terms:ir.ui.view,arch_db:account.res_config_settings_view_form
msgid "<span class=\"o_form_label\">Rounding Method</span>"
msgid "<span class=\"o_form_label\">Rounding Method</span>\n"
" <span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-specific.\" aria-label=\"Values set here are company-specific.\" groups=\"base.group_multi_company\" role=\"img\"/>"
msgstr ""
#. module: account
@@ -3167,6 +3168,12 @@ msgstr ""
msgid "Created by"
msgstr ""
#. module: account
#: code:addons/account/models/account_invoice.py:419
#, python-format
msgid "Created by: %s"
msgstr ""
#. module: account
#: model:ir.model.fields,field_description:account.field_account_account__create_date
#: model:ir.model.fields,field_description:account.field_account_account_tag__create_date
+1 -1
View File
@@ -416,7 +416,7 @@ class AccountInvoice(models.Model):
vendor_display_name = _('From: ') + invoice.source_email
invoice.invoice_icon = '@'
else:
vendor_display_name = ('Created by: ') + invoice.sudo().create_uid.name
vendor_display_name = _('Created by: %s') % invoice.sudo().create_uid.name
invoice.invoice_icon = '#'
invoice.vendor_display_name = vendor_display_name