summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2021-02-25 12:38:51 +0100
committerMartin Trigaux <mat@odoo.com>2021-02-25 15:44:43 +0100
commitac4f3a88d2a97f1fb64d5924025dce3ffe54ab82 (patch)
tree7f3b799e0f6ecab04af3b4c62592c8b683e7c82f /addons
parentcce95b85a4aebb4316c0ca28d038a346e4b0ba8a (diff)
[FIX] account: translate "Balance Sheet" selection
Was using the wrong method to translate
Diffstat (limited to 'addons')
-rw-r--r--addons/account/i18n/account.pot7
-rw-r--r--addons/account/static/src/js/account_selection.js2
2 files changed, 8 insertions, 1 deletions
diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot
index d471f9b7065..2189d5aeb4e 100644
--- a/addons/account/i18n/account.pot
+++ b/addons/account/i18n/account.pot
@@ -2286,6 +2286,13 @@ 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"
msgstr ""
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'])},