From f1f41b68b70c407b19b36fc24ef32573d568773a Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 25 Feb 2021 12:38:51 +0100 Subject: [PATCH] [FIX] account: translate "Balance Sheet" selection Was using the wrong method to translate X-original-commit: 57611ac95718643b2cb03871e655864dbd74967a --- addons/account/i18n/account.pot | 7 +++++++ addons/account/static/src/js/account_selection.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 5301627b843..e820a124278 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -2319,6 +2319,13 @@ msgstr "" msgid "Balance" msgstr "" +#. module: account +#. openerp-web +#: code:addons/account/static/src/js/account_selection.js:0 +#, python-format +msgid "Balance Sheet" +msgstr "" + #. module: account #: model:ir.model.fields,help:account.field_account_bank_statement__balance_end msgid "Balance as calculated based on Opening Balance and transaction lines" diff --git a/addons/account/static/src/js/account_selection.js b/addons/account/static/src/js/account_selection.js index d098505b593..feee1c178e9 100644 --- a/addons/account/static/src/js/account_selection.js +++ b/addons/account/static/src/js/account_selection.js @@ -27,7 +27,7 @@ odoo.define('account.hierarchy.selection', function (require) { self.values = _.map(arg, v => [v['id'], v['display_name']]) self.hierarchy_groups = [ { - 'name': _('Balance Sheet'), + 'name': _t('Balance Sheet'), 'children': [ {'name': _t('Assets'), 'ids': _.map(_.filter(arg, v => v['internal_group'] == 'asset'), v => v['id'])}, {'name': _t('Liabilities'), 'ids': _.map(_.filter(arg, v => v['internal_group'] == 'liability'), v => v['id'])},