From 39031ae8a2c6b549851e485bd6e2a0273ea8b3cf Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 18 Dec 2025 16:37:27 +0530 Subject: [PATCH] fix: customer quick entry address --- erpnext/public/js/utils/contact_address_quick_entry.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/public/js/utils/contact_address_quick_entry.js b/erpnext/public/js/utils/contact_address_quick_entry.js index c90f1914688..ee3ff95bfd3 100644 --- a/erpnext/public/js/utils/contact_address_quick_entry.js +++ b/erpnext/public/js/utils/contact_address_quick_entry.js @@ -76,6 +76,7 @@ frappe.ui.form.ContactAddressQuickEntryForm = class ContactAddressQuickEntryForm label: __("Address Line 1"), fieldname: "address_line1", fieldtype: "Data", + mandatory_depends_on: "eval:doc.city || doc.country", }, { label: __("Address Line 2"), @@ -94,6 +95,7 @@ frappe.ui.form.ContactAddressQuickEntryForm = class ContactAddressQuickEntryForm label: __("City"), fieldname: "city", fieldtype: "Data", + mandatory_depends_on: "eval:doc.country || doc.address_line1", }, { label: __("State/Province"), @@ -105,6 +107,7 @@ frappe.ui.form.ContactAddressQuickEntryForm = class ContactAddressQuickEntryForm fieldname: "country", fieldtype: "Link", options: "Country", + mandatory_depends_on: "eval:doc.city || doc.address_line1", }, { label: __("Customer POS Id"),