From e396a556e37fe024c72150bdffc4ad28f661ecfb Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Fri, 29 Sep 2023 12:51:01 +0530 Subject: [PATCH] MST field update --- .../special_tool_information.json | 42 ++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/smart_service/phase_2/doctype/special_tool_information/special_tool_information.json b/smart_service/phase_2/doctype/special_tool_information/special_tool_information.json index 5d21343..4335629 100644 --- a/smart_service/phase_2/doctype/special_tool_information/special_tool_information.json +++ b/smart_service/phase_2/doctype/special_tool_information/special_tool_information.json @@ -15,17 +15,17 @@ "column_break_m3p9i", "category", "aggregate_name", - "aggregate_image", + "tool_image", "column_break_whk88", "my_id", "section_break_e91wx", "instructions", - "teb_instructions", - "keywords", "pdf", "image", + "videos", "tool_name", - "tool_type" + "tool_type", + "keywords" ], "fields": [ { @@ -77,16 +77,19 @@ "options": "Active\nInactive" }, { + "depends_on": "eval:doc.category != 'TEB';", "fieldname": "keywords", "fieldtype": "Small Text", "label": "Keywords" }, { + "depends_on": "eval:doc.category != 'TEB';", "fieldname": "keywords", "fieldtype": "Small Text", "label": "Keywords" }, { + "depends_on": "eval:doc.category != 'TEB';", "fieldname": "aggregate_name", "fieldtype": "Data", "label": "Aggregate Name", @@ -102,11 +105,7 @@ "set_only_once": 1 }, { - "fieldname": "aggregate_image", - "fieldtype": "Attach Image", - "label": "Aggregate Image" - }, - { + "depends_on": "eval:doc.category != 'TEB';", "fieldname": "pdf", "fieldtype": "Attach", "label": "PDF" @@ -118,10 +117,10 @@ "options": "Instructions" }, { + "depends_on": "eval:doc.category != 'TEB';", "fieldname": "tool_name", "fieldtype": "Data", - "label": "Tool Name", - "reqd": 1 + "label": "Tool Name" }, { "fieldname": "tool_type", @@ -130,13 +129,7 @@ "options": "New Tool\nCarry Over" }, { - "fieldname": "teb_instructions", - "fieldtype": "Table", - "hidden": 1, - "label": "TEB Instructions", - "options": "TEB Instructions" - }, - { + "depends_on": "eval:doc.category != 'TEB';", "fieldname": "image", "fieldtype": "Attach Image", "label": "Image" @@ -144,11 +137,22 @@ { "fieldname": "column_break_m3p9i", "fieldtype": "Column Break" + }, + { + "fieldname": "tool_image", + "fieldtype": "Attach Image", + "label": "Tool Image" + }, + { + "depends_on": "eval:doc.category != 'TEB';", + "fieldname": "videos", + "fieldtype": "Attach", + "label": "Videos" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-09-27 11:59:38.479380", + "modified": "2023-09-29 12:44:19.576957", "modified_by": "Administrator", "module": "Phase-2", "name": "Special Tool Information",