From 0105e02fa768f21ce6706f6c7acdfe94cbb7eff3 Mon Sep 17 00:00:00 2001 From: celm1990 Date: Sun, 30 Sep 2018 10:23:55 -0500 Subject: [PATCH] [FIX] account: incorrect use of translation system Cf https://www.odoo.com/documentation/11.0/reference/guidelines.html#use-translation-method-correctly --- addons/account/i18n/account.pot | 14 +++++++------- addons/account/models/account_move.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index f2d08498227..2eb87ea8b93 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -67,7 +67,13 @@ msgstr "" #. module: account #: code:addons/account/models/account_move.py:382 #, python-format -msgid "%sreversal of: " +msgid "Reversal of: %s" +msgstr "" + +#. module: account +#: code:addons/account/models/account_move.py:382 +#, python-format +msgid "Automatic reversal of: %s" msgstr "" #. module: account @@ -1708,12 +1714,6 @@ msgstr "" msgid "Automated Entries" msgstr "" -#. module: account -#: code:addons/account/models/account_move.py:382 -#, python-format -msgid "Automatic " -msgstr "" - #. module: account #: code:addons/account/models/company.py:394 #, python-format diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 9c43cf5ea50..3a1d43477c2 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -379,7 +379,7 @@ class AccountMove(models.Model): reversed_move = self.copy(default={ 'date': date, 'journal_id': journal_id.id if journal_id else self.journal_id.id, - 'ref': _('%sreversal of: ') % (_('Automatic ') if auto else '') + self.name, + 'ref': (_('Automatic reversal of: %s') if auto else _('Reversal of: %s')) % (self.name), 'auto_reverse': False}) for acm_line in reversed_move.line_ids.with_context(check_move_validity=False): acm_line.write({