[FIX] account: incorrect use of translation system

Cf https://www.odoo.com/documentation/11.0/reference/guidelines.html#use-translation-method-correctly
This commit is contained in:
celm1990
2018-10-01 10:08:45 +02:00
committed by Xavier Morel
parent 62ab7eb88b
commit 0105e02fa7
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -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
+1 -1
View File
@@ -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({