hns
3 years ago
4 changed files with 261 additions and 63 deletions
@ -0,0 +1,223 @@ |
|||||
|
[ |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-23 15:01:29.749648", |
||||
|
"name": "Siva-Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Siva", |
||||
|
"script": "doclist = frappe.get_list(\"Siva\", fields=['myid'], order_by='creation desc', as_list=True)\nnumber = doclist[0][0] if doclist else 999\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 11:20:08.903462", |
||||
|
"name": "Vehicle Segment_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Vehicle Segment", |
||||
|
"script": "doclist = frappe.get_list(\"Vehicle Segment\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 11:32:28.824220", |
||||
|
"name": "Service Kilometers_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Service Kilometers", |
||||
|
"script": "doclist = frappe.get_list(\"Service Kilometers\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 11:55:20.259219", |
||||
|
"name": "Vehicle_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Vehicle", |
||||
|
"script": "doclist = frappe.get_list(\"Vehicle\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 12:11:52.883566", |
||||
|
"name": "Variant_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Variant", |
||||
|
"script": "doclist = frappe.get_list(\"Variant\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 12:57:51.283964", |
||||
|
"name": "Fuel_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Fuel", |
||||
|
"script": "doclist = frappe.get_list(\"Fuel\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 13:02:55.333502", |
||||
|
"name": "Transmission_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Transmission", |
||||
|
"script": "doclist = frappe.get_list(\"Transmission\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 13:05:20.240515", |
||||
|
"name": "Drive", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Drive", |
||||
|
"script": "doclist = frappe.get_list(\"Drive\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 13:12:41.361844", |
||||
|
"name": "Systems_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Systems", |
||||
|
"script": "doclist = frappe.get_list(\"Systems\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-11-24 13:14:32.225549", |
||||
|
"name": "Sub Systems_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Sub Systems", |
||||
|
"script": "doclist = frappe.get_list(\"Sub Systems\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2021-12-27 18:19:26.411283", |
||||
|
"name": "Custom Languages_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Custom Languages", |
||||
|
"script": "doclist = frappe.get_list(\"Custom Languages\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 0, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "All", |
||||
|
"modified": "2022-01-10 17:18:46.901349", |
||||
|
"name": "Application Menu_Insert", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": "Application Menu", |
||||
|
"script": "doclist = frappe.get_list(\"Application Menu\", fields=['myid'], order_by='creation desc', as_list=True)\r\nnumber = doclist[0][0] if doclist else 999\r\ndoc.myid = int(number) + 1", |
||||
|
"script_type": "DocType Event" |
||||
|
}, |
||||
|
{ |
||||
|
"allow_guest": 0, |
||||
|
"api_method": null, |
||||
|
"disabled": 1, |
||||
|
"docstatus": 0, |
||||
|
"doctype": "Server Script", |
||||
|
"doctype_event": "Before Insert", |
||||
|
"event_frequency": "Hourly", |
||||
|
"modified": "2022-01-31 17:12:43.653700", |
||||
|
"name": "Replant Apple", |
||||
|
"parent": null, |
||||
|
"parentfield": null, |
||||
|
"parenttype": null, |
||||
|
"reference_doctype": null, |
||||
|
"script": "#import frappe\r\n\r\n#def generate_keys(user):\r\nuser = \"ponkebhap@hnsonline.com\"\r\nuser_details = frappe.get_doc('User', user)\r\napi_secret = frappe.generate_hash(length=15)\r\nif not user_details.api_key:\r\n api_key = frappe.generate_hash(length=15)\r\n user_details.api_key = api_key\r\nuser_details.api_secret = api_secret\r\nuser_details.save()\r\ntoken = user_details.api_key+':'+api_secret\r\n\r\nnew_tok = generate_keys('cms@guidedsmartservice.com')\r\nwater = frappe.get_doc(\"numlock\", 'N-0001')\r\nwater.pwd = new_tok\r\nwater.save()", |
||||
|
"script_type": "Scheduler Event" |
||||
|
} |
||||
|
] |
Loading…
Reference in new issue