[FIX] account: translate "Balance Sheet" selection

Was using the wrong method to translate

X-original-commit: 57611ac95718643b2cb03871e655864dbd74967a
This commit is contained in:
Martin Trigaux
2021-03-01 10:31:33 +01:00
parent 831aef2a00
commit f1f41b68b7
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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"
@@ -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'])},