From 0481b06131e870c95fe35e5263f907a117be726d Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 10 Jul 2019 09:55:58 +0000 Subject: [PATCH] [FIX] account: correctly translate the message Introduced at 4eeaf6c0e2a6fb4 closes odoo/odoo#34738 Signed-off-by: Martin Trigaux (mat) --- addons/account/i18n/account.pot | 13 ++++++++++--- addons/account/models/account_invoice.py | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index b9abfc4b4b8..6aa2e23c430 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -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 "Rounding Method" +msgid "Rounding Method\n" +" " 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 diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 805f66d716f..a94180f3b04 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -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