[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:
niyasraphy
2023-02-06 15:27:07 +01:00
parent 0dad393206
commit d6f3fcfee7
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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"
+1 -1
View File
@@ -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)],