Merge pull request #44950 from mahsem/postal_code_move_and_fixes

fix: postal_code_move_and_fixes
This commit is contained in:
ruthra kumar
2025-01-23 16:17:15 +05:30
committed by GitHub
3 changed files with 21 additions and 18 deletions

View File

@@ -55,12 +55,13 @@ def get_columns():
"options": "Company",
"width": 120,
},
{"fieldname": "address", "label": _("Address"), "fieldtype": "Data", "width": 130},
{"fieldname": "state", "label": _("State"), "fieldtype": "Data", "width": 100},
{"fieldname": "pincode", "label": _("Postal Code"), "fieldtype": "Data", "width": 90},
{"label": _("Address"), "fieldname": "address", "fieldtype": "Data", "width": 130},
{"label": _("Postal Code"), "fieldname": "pincode", "fieldtype": "Data", "width": 90},
{"label": _("City"), "fieldname": "city", "fieldtype": "Data", "width": 100},
{"label": _("State"), "fieldname": "state", "fieldtype": "Data", "width": 100},
{
"fieldname": "country",
"label": _("Country"),
"fieldname": "country",
"fieldtype": "Link",
"options": "Country",
"width": 100,
@@ -93,8 +94,9 @@ def get_data(filters):
lead.owner,
lead.company,
(Concat_ws(", ", address.address_line1, address.address_line2)).as_("address"),
address.state,
address.pincode,
address.city,
address.state,
address.country,
)
.where(lead.company == filters.company)

View File

@@ -31,9 +31,9 @@ def get_columns(filters):
f"{frappe.unscrub(str(party_type_value))}::150",
"Address Line 1",
"Address Line 2",
"Postal Code",
"City",
"State",
"Postal Code",
"Country",
"Is Primary Address:Check",
"First Name",

View File

@@ -84,6 +84,18 @@
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "pincode",
"fieldtype": "Data",
"hidden": 0,
"label": "Postal Code",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "city",
@@ -108,18 +120,7 @@
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "pincode",
"fieldtype": "Data",
"hidden": 0,
"label": "Postal Code",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 1,
"fieldname": "country",