chore: translatable labels

(cherry picked from commit 39174f9dc0)
This commit is contained in:
ruthra kumar
2025-04-15 17:32:46 +05:30
committed by Mergify
parent 28b3856bc9
commit 4f1f46a4d4

View File

@@ -3,6 +3,7 @@
import frappe
from frappe import _
field_map = {
"Contact": ["name", "first_name", "last_name", "phone", "mobile_no", "email_id", "is_primary_contact"],
@@ -31,7 +32,7 @@ def get_columns(filters):
f"{party_type}:Link/{party_type}",
f"{frappe.unscrub(str(party_type_value))}::150",
{
"label": "Address",
"label": _("Address"),
"fieldtype": "Link",
"options": "Address",
"hidden": 1,
@@ -43,7 +44,7 @@ def get_columns(filters):
"State",
"Country",
"Is Primary Address:Check",
{"label": "Contact", "fieldtype": "Link", "options": "Contact", "hidden": 1},
{"label": _("Contact"), "fieldtype": "Link", "options": "Contact", "hidden": 1},
"First Name",
"Last Name",
"Phone",