From fdda86455a93a25bb2216893da69cc8efe9a07d2 Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhoda Date: Mon, 2 Dec 2024 11:23:10 +0530 Subject: [PATCH] fix: Translate `Party Account` column label (cherry picked from commit a4f8315602ad5ebfd3805b986f7186648d05313c) --- .../report/accounts_receivable/accounts_receivable.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index ad6dd096b58..49dce0e299b 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -1027,8 +1027,15 @@ class ReceivablePayableReport: options="party_type", width=180, ) + if self.account_type == "Receivable": + label = _("Receivable Account") + elif self.account_type == "Payable": + label = _("Payable Account") + else: + label = _("Party Account") + self.add_column( - label=_(self.account_type + " Account"), + label=label, fieldname="party_account", fieldtype="Link", options="Account",