From 43d0524a19a00282804895e35112d5f13e083466 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 18 Feb 2022 12:14:09 +0530 Subject: [PATCH] missing json data files vechile and variant --- .gitignore | 2 + .../masters/doctype/drive/drive.json | 2 +- .../masters/doctype/variant/variant.json | 79 ++++++++++++++++--- .../masters/doctype/vehicle/vehicle.json | 18 ++--- .../doctype/procedure/procedure.js | 1 + .../doctype/procedure/procedure.json | 4 +- .../procedure_details/procedure_details.json | 4 +- 7 files changed, 87 insertions(+), 23 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09bf5d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +__pycache__/ \ No newline at end of file diff --git a/smart_service/masters/doctype/drive/drive.json b/smart_service/masters/doctype/drive/drive.json index 201c46b..36cea07 100644 --- a/smart_service/masters/doctype/drive/drive.json +++ b/smart_service/masters/doctype/drive/drive.json @@ -42,7 +42,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2022-02-11 12:34:30.847569", + "modified": "2022-02-18 11:48:00.194884", "modified_by": "Administrator", "module": "Masters", "name": "Drive", diff --git a/smart_service/masters/doctype/variant/variant.json b/smart_service/masters/doctype/variant/variant.json index 4be8890..3a753f7 100644 --- a/smart_service/masters/doctype/variant/variant.json +++ b/smart_service/masters/doctype/variant/variant.json @@ -1,47 +1,106 @@ { "actions": [], + "allow_import": 1, + "allow_rename": 1, "autoname": "format:{vehicle}.{variant}", - "creation": "2022-02-13 05:17:10.978251", + "creation": "2021-10-28 12:45:38.664344", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ "vehicle", + "vehicle_id", "variant", - "fuel_type" + "active_status", + "column_break_4", + "vehicle_segment", + "vehicle_segment_id", + "variant_image", + "preview", + "myid" ], "fields": [ { + "allow_in_quick_entry": 1, "fieldname": "vehicle", "fieldtype": "Link", "in_list_view": 1, + "in_preview": 1, "in_standard_filter": 1, "label": "Vehicle", "options": "Vehicle", "reqd": 1 }, { + "allow_in_quick_entry": 1, "fieldname": "variant", "fieldtype": "Data", "in_list_view": 1, + "in_preview": 1, "in_standard_filter": 1, "label": "Variant", "reqd": 1 }, { - "default": "Petrol", - "fieldname": "fuel_type", - "fieldtype": "Link", + "fetch_from": "vehicle.myid", + "fieldname": "vehicle_id", + "fieldtype": "Int", + "hidden": 1, + "label": "Vehicle ID", + "read_only": 1 + }, + { + "fieldname": "active_status", + "fieldtype": "Select", + "hidden": 1, + "label": "Active Status", + "options": "Active\nInactive" + }, + { + "fieldname": "column_break_4", + "fieldtype": "Column Break" + }, + { + "fetch_from": "vehicle.vehicle_segment", + "fieldname": "vehicle_segment", + "fieldtype": "Data", "in_list_view": 1, "in_standard_filter": 1, - "label": "Fuel Type", - "options": "Fuel", - "reqd": 1 + "label": "Vehicle Segment", + "read_only": 1 + }, + { + "fetch_from": "vehicle.vehicle_segment_id", + "fieldname": "vehicle_segment_id", + "fieldtype": "Data", + "hidden": 1, + "label": "Vehicle Segment ID", + "read_only": 1 + }, + { + "fieldname": "variant_image", + "fieldtype": "Attach Image", + "label": "Variant Image" + }, + { + "fieldname": "preview", + "fieldtype": "Image", + "label": "Preview", + "options": "variant_image" + }, + { + "fieldname": "myid", + "fieldtype": "Int", + "hidden": 1, + "in_list_view": 1, + "in_standard_filter": 1, + "label": "myID", + "set_only_once": 1 } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2022-02-13 05:23:24.294205", + "modified": "2022-02-18 11:44:36.707430", "modified_by": "Administrator", "module": "Masters", "name": "Variant", @@ -60,7 +119,7 @@ "write": 1 } ], - "search_fields": "vehicle,variant", + "search_fields": "variant,vehicle,vehicle_segment,active_status", "sort_field": "modified", "sort_order": "DESC", "title_field": "variant", diff --git a/smart_service/masters/doctype/vehicle/vehicle.json b/smart_service/masters/doctype/vehicle/vehicle.json index 2a63ca5..a7e1d47 100644 --- a/smart_service/masters/doctype/vehicle/vehicle.json +++ b/smart_service/masters/doctype/vehicle/vehicle.json @@ -39,6 +39,14 @@ "options": "Active\nInactive", "reqd": 1 }, + { + "fieldname": "display_order", + "fieldtype": "Int", + "in_list_view": 1, + "in_standard_filter": 1, + "label": "Display Order", + "reqd": 1 + }, { "allow_in_quick_entry": 1, "fieldname": "vehicle", @@ -85,14 +93,6 @@ "label": "myID", "set_only_once": 1 }, - { - "fieldname": "display_order", - "fieldtype": "Int", - "in_list_view": 1, - "in_standard_filter": 1, - "label": "Display Order", - "reqd": 1 - }, { "fieldname": "service_kilometers", "fieldtype": "Table MultiSelect", @@ -118,7 +118,7 @@ ], "index_web_pages_for_search": 1, "links": [], - "modified": "2022-02-17 12:33:38.665289", + "modified": "2022-02-18 11:47:20.522687", "modified_by": "Administrator", "module": "Masters", "name": "Vehicle", diff --git a/smart_service/transactions/doctype/procedure/procedure.js b/smart_service/transactions/doctype/procedure/procedure.js index 4ef7804..1400edd 100644 --- a/smart_service/transactions/doctype/procedure/procedure.js +++ b/smart_service/transactions/doctype/procedure/procedure.js @@ -5,3 +5,4 @@ frappe.ui.form.on('Procedure', { //refresh: function(frm) { // } }); + diff --git a/smart_service/transactions/doctype/procedure/procedure.json b/smart_service/transactions/doctype/procedure/procedure.json index 89a28cc..b983dce 100644 --- a/smart_service/transactions/doctype/procedure/procedure.json +++ b/smart_service/transactions/doctype/procedure/procedure.json @@ -201,18 +201,20 @@ "collapsible": 1, "fieldname": "html_reference_section", "fieldtype": "Section Break", + "hidden": 1, "label": "HTML Reference" }, { "fieldname": "procedure_html_ref", "fieldtype": "Table", + "hidden": 1, "label": "Procedure HTML Ref", "options": "Procedure HTML Ref" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2022-02-15 10:06:23.193783", + "modified": "2022-02-18 11:49:34.257934", "modified_by": "Administrator", "module": "Transactions", "name": "Procedure", diff --git a/smart_service/transactions/doctype/procedure_details/procedure_details.json b/smart_service/transactions/doctype/procedure_details/procedure_details.json index e4f135c..5434e91 100644 --- a/smart_service/transactions/doctype/procedure_details/procedure_details.json +++ b/smart_service/transactions/doctype/procedure_details/procedure_details.json @@ -44,7 +44,7 @@ { "columns": 4, "fieldname": "content", - "fieldtype": "Small Text", + "fieldtype": "Text Editor", "in_list_view": 1, "label": "Content", "read_only_depends_on": "eval:doc.content_type == \"Link\"" @@ -74,7 +74,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2022-02-17 16:16:20.035083", + "modified": "2022-02-18 11:20:32.565428", "modified_by": "Administrator", "module": "Transactions", "name": "Procedure_Details",