From 65656ec2df789ee86331bb56fe2ad9a8824b8159 Mon Sep 17 00:00:00 2001 From: tundebabzy Date: Mon, 24 Jul 2017 07:02:26 +0100 Subject: [PATCH] hide salution and gender if company type is Company (#10040) --- erpnext/selling/doctype/customer/customer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/customer/customer.json b/erpnext/selling/doctype/customer/customer.json index 1b77418bd2..52c6b6db86 100644 --- a/erpnext/selling/doctype/customer/customer.json +++ b/erpnext/selling/doctype/customer/customer.json @@ -81,6 +81,7 @@ "bold": 0, "collapsible": 0, "columns": 0, + "depends_on": "eval:doc.customer_type!='Company'", "fieldname": "salutation", "fieldtype": "Link", "hidden": 0, @@ -143,6 +144,7 @@ "bold": 0, "collapsible": 0, "columns": 0, + "depends_on": "eval:doc.customer_type != 'Company'", "fieldname": "gender", "fieldtype": "Link", "hidden": 0, @@ -1200,7 +1202,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2017-06-28 14:55:39.910819", + "modified": "2017-07-24 00:55:07.445783", "modified_by": "Administrator", "module": "Selling", "name": "Customer",