[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:
@@ -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
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user