From 29d7528a956015070c710fa90cd42cd3c0828031 Mon Sep 17 00:00:00 2001 From: marination Date: Thu, 1 Oct 2020 14:55:21 +0530 Subject: [PATCH] fix: Hide Preview Email button on submitted doc --- .../doctype/request_for_quotation/request_for_quotation.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.json b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.json index 7e5650f670..5f01f6e24c 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.json +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.json @@ -262,6 +262,7 @@ "fieldtype": "Column Break" }, { + "depends_on": "eval:!doc.docstatus==1", "fieldname": "preview", "fieldtype": "Button", "label": "Preview Email" @@ -276,7 +277,7 @@ "icon": "fa fa-shopping-cart", "is_submittable": 1, "links": [], - "modified": "2020-09-28 17:37:10.313350", + "modified": "2020-10-01 14:54:50.888729", "modified_by": "Administrator", "module": "Buying", "name": "Request for Quotation",