diff --git a/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py b/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py index c5e9ec44c6f..de961ba6c4c 100644 --- a/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py +++ b/erpnext/accounts/report/tds_computation_summary/tds_computation_summary.py @@ -118,7 +118,7 @@ def get_columns(filters): "width": 180, }, { - "label": _(f"{filters.get('party_type', 'Party')} Type"), + "label": _("{0} Type").format(_(filters.get("party_type", "Party"))), "fieldname": "party_entity_type", "fieldtype": "Data", "width": 180, diff --git a/erpnext/accounts/report/tds_payable_monthly/tds_payable_monthly.py b/erpnext/accounts/report/tds_payable_monthly/tds_payable_monthly.py index 710a557e909..03289641447 100644 --- a/erpnext/accounts/report/tds_payable_monthly/tds_payable_monthly.py +++ b/erpnext/accounts/report/tds_payable_monthly/tds_payable_monthly.py @@ -209,7 +209,7 @@ def get_columns(filters): columns.extend( [ { - "label": _(f"{filters.get('party_type', 'Party')} Type"), + "label": _("{0} Type").format(_(filters.get("party_type", "Party"))), "fieldname": "party_entity_type", "fieldtype": "Data", "width": 100,