[FIX] account: translatable action name
before this commit, the action name was not translatable into user language and always displayed in english. after this commit, the action name will be translatable and will be showing the value based on user language preference. closes odoo/odoo#111991 X-original-commit: 6aa80ca670476494b10115f61805324811b73a58 Signed-off-by: John Laterre (jol) <jol@odoo.com>
This commit is contained in:
@@ -14519,6 +14519,12 @@ msgstr ""
|
||||
msgid "Unposted"
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: code:addons/account/models/company.py:0
|
||||
#, python-format
|
||||
msgid "Unposted Entries"
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: model_terms:ir.ui.view,arch_db:account.view_account_move_filter
|
||||
msgid "Unposted Journal Entries"
|
||||
|
||||
@@ -316,7 +316,7 @@ class ResCompany(models.Model):
|
||||
error_msg = _('There are still unposted entries in the period you want to lock. You should either post or delete them.')
|
||||
action_error = {
|
||||
'view_mode': 'tree',
|
||||
'name': 'Unposted Entries',
|
||||
'name': _('Unposted Entries'),
|
||||
'res_model': 'account.move',
|
||||
'type': 'ir.actions.act_window',
|
||||
'domain': [('id', 'in', draft_entries.ids)],
|
||||
|
||||
Reference in New Issue
Block a user