From d6f3fcfee7694f90676481971b86f9284b43a4e0 Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Fri, 20 Jan 2023 05:03:18 +0000 Subject: [PATCH] [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) --- addons/account/i18n/account.pot | 6 ++++++ addons/account/models/company.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index fdf03da08d5..ec51ccbfa3d 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -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" diff --git a/addons/account/models/company.py b/addons/account/models/company.py index 4c71924a013..49122b4a247 100644 --- a/addons/account/models/company.py +++ b/addons/account/models/company.py @@ -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)],