From 7f42e908329934cc07458d18f89523a4037d3c25 Mon Sep 17 00:00:00 2001 From: mbauskar Date: Sun, 12 Mar 2017 21:57:52 +0530 Subject: [PATCH] [minor] display campaign field only if source is Campaign --- erpnext/crm/doctype/opportunity/opportunity.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/crm/doctype/opportunity/opportunity.json b/erpnext/crm/doctype/opportunity/opportunity.json index e38ca6d45e..90be78190e 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.json +++ b/erpnext/crm/doctype/opportunity/opportunity.json @@ -1,5 +1,6 @@ { "allow_copy": 0, + "allow_guest_to_view": 0, "allow_import": 1, "allow_rename": 0, "autoname": "naming_series:", @@ -834,6 +835,7 @@ "bold": 0, "collapsible": 0, "columns": 0, + "depends_on": "eval: doc.source==\"Campaign\"", "description": "Enter name of campaign if source of enquiry is campaign", "fieldname": "campaign", "fieldtype": "Link", @@ -1139,18 +1141,18 @@ "width": "150px" } ], + "has_web_view": 0, "hide_heading": 0, "hide_toolbar": 0, "icon": "fa fa-info-sign", "idx": 195, "image_view": 0, "in_create": 0, - "in_dialog": 0, "is_submittable": 0, "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2017-02-17 16:37:39.028830", + "modified": "2017-03-12 21:55:21.598112", "modified_by": "Administrator", "module": "CRM", "name": "Opportunity",