From 8622f0d364b6785ab6fc2442ab7214a3a72c580d Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Mon, 27 May 2024 11:46:17 +0200 Subject: [PATCH] fix: Show translated report name --- .../account_balance_timeline/account_balance_timeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py index 3a4626c268..61d7c7e98a 100644 --- a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py +++ b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py @@ -39,14 +39,14 @@ def get( if not account and chart_name: frappe.throw( _("Account is not set for the dashboard chart {0}").format( - get_link_to_form("Dashboard Chart", chart_name) + get_link_to_form("Dashboard Chart", chart_name, _(chart_name)) ) ) if not frappe.db.exists("Account", account) and chart_name: frappe.throw( _("Account {0} does not exists in the dashboard chart {1}").format( - account, get_link_to_form("Dashboard Chart", chart_name) + account, get_link_to_form("Dashboard Chart", chart_name, _(chart_name)) ) ) -- GitLab