Browse Source

MST Image review and field changes

version2
venkata akhil 1 year ago
parent
commit
e226ed4d42
  1. 9
      smart_service/phase_2/doctype/instructions/instructions.json
  2. 2
      smart_service/phase_2/doctype/special_tool_information/special_tool_information.js

9
smart_service/phase_2/doctype/instructions/instructions.json

@ -24,13 +24,13 @@
"fieldtype": "Select",
"in_list_view": 1,
"label": "Content Type",
"options": "Heading\nDescription\nCaution\nWarning\nImage\nVideo\nPDF",
"options": "Heading\nDescription\nCaution\nWarning\nNotice\nImage\nVideo\nPDF",
"read_only_depends_on": "// eval:doc.content_type == 'PDF'",
"set_only_once": 1
},
{
"fieldname": "content",
"fieldtype": "Data",
"fieldtype": "Small Text",
"in_list_view": 1,
"label": "Content"
},
@ -38,7 +38,8 @@
"fieldname": "attach_file",
"fieldtype": "Attach",
"in_list_view": 1,
"label": "Attach File"
"label": "Attach File",
"read_only_depends_on": "// eval:doc.content_type =='Heading';"
},
{
"fieldname": "title",
@ -50,7 +51,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-09-27 15:21:21.158532",
"modified": "2023-10-04 11:06:07.232457",
"modified_by": "Administrator",
"module": "Phase-2",
"name": "Instructions",

2
smart_service/phase_2/doctype/special_tool_information/special_tool_information.js

@ -62,6 +62,7 @@ frappe.ui.form.on('Special Tool Information', {
}
});
}
frm.doc.name = frm.doc.vehicle + "-" + frm.doc.tool_type + "-" + frm.doc.category + "-" + frm.doc.aggregate_name
},
category: function (frm, cdt, cdn) {
@ -137,6 +138,7 @@ function set_display_order(frm){
});
}
frappe.ui.form.on('Instructions', {
// child table depends_on based on main doctype
instructions_add: function (frm, cdt, cdn) {
refresh_field("instructions")
var child = locals[cdt][cdn];

Loading…
Cancel
Save