Browse Source

Merge branch 'version2' of http://65.1.227.215:3000/Administrator/smart_service into version2

version2
venkata akhil 12 months ago
parent
commit
f5856f9f42
  1. 2
      smart_service/apis/v2/master.py
  2. 20
      smart_service/phase_2/doctype/special_tool_information/special_tool_information.json

2
smart_service/apis/v2/master.py

@ -266,7 +266,7 @@ def new_publish1():
@frappe.whitelist(methods=['POST'], allow_guest=1)
def get_special_tool_information(vehicle):
try:
special_tool_information = frappe.db.sql(''' select name,vehicle,tool_type,category,aggregate_name, aggregate_image as 'tool_image',
special_tool_information = frappe.db.sql(''' select name,vehicle,tool_type,category,aggregate_name,tool_name,aggregate_image as 'tool_image',
pdf,image,video,keywords,display_order,my_id,active_status from `tabSpecial Tool Information`
where vehicle= '%s' ;''' % (vehicle), as_dict=1)
for s in special_tool_information:

20
smart_service/phase_2/doctype/special_tool_information/special_tool_information.json

@ -17,6 +17,7 @@
"column_break_m3p9i",
"category",
"aggregate_name",
"tool_name",
"pdf",
"column_break_wvkn2",
"active_status",
@ -24,7 +25,8 @@
"video",
"my_id",
"section_break_e91wx",
"instructions"
"instructions",
"image_preview"
],
"fields": [
{
@ -88,7 +90,8 @@
"fieldname": "aggregate_name",
"fieldtype": "Data",
"label": "Aggregate Name",
"reqd": 1
"reqd": 1,
"set_only_once": 1
},
{
"fieldname": "category",
@ -141,11 +144,22 @@
{
"fieldname": "column_break_wvkn2",
"fieldtype": "Column Break"
},
{
"fieldname": "image_preview",
"fieldtype": "Image",
"label": "Image Preview",
"options": "image"
},
{
"fieldname": "tool_name",
"fieldtype": "Data",
"label": "Tool Name"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-10-04 10:51:51.926504",
"modified": "2023-10-04 12:06:21.324200",
"modified_by": "Administrator",
"module": "Phase-2",
"name": "Special Tool Information",

Loading…
Cancel
Save