mirror of
				https://github.com/itsdave-de/msp.git
				synced 2025-10-30 17:07:09 -03:00 
			
		
		
		
	Prepare for OITC Connection
This commit is contained in:
		
							parent
							
								
									37707092a4
								
							
						
					
					
						commit
						94e705962f
					
				| @ -23,8 +23,9 @@ | |||||||
|   "network_config_section", |   "network_config_section", | ||||||
|   "ip_adresses", |   "ip_adresses", | ||||||
|   "external_links_section", |   "external_links_section", | ||||||
|  |   "admin_interface_link", | ||||||
|   "monitoring_link", |   "monitoring_link", | ||||||
|   "admin_interface_link" |   "oitc_host_uuid" | ||||||
|  ], |  ], | ||||||
|  "fields": [ |  "fields": [ | ||||||
|   { |   { | ||||||
| @ -126,7 +127,7 @@ | |||||||
|    "collapsible": 1, |    "collapsible": 1, | ||||||
|    "fieldname": "external_links_section", |    "fieldname": "external_links_section", | ||||||
|    "fieldtype": "Section Break", |    "fieldtype": "Section Break", | ||||||
|    "label": "External Links" |    "label": "External References" | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|    "fieldname": "monitoring_link", |    "fieldname": "monitoring_link", | ||||||
| @ -137,11 +138,16 @@ | |||||||
|    "fieldname": "admin_interface_link", |    "fieldname": "admin_interface_link", | ||||||
|    "fieldtype": "Data", |    "fieldtype": "Data", | ||||||
|    "label": "Admin Interface Link" |    "label": "Admin Interface Link" | ||||||
|  |   }, | ||||||
|  |   { | ||||||
|  |    "fieldname": "oitc_host_uuid", | ||||||
|  |    "fieldtype": "Data", | ||||||
|  |    "label": "OITC Host UUID" | ||||||
|   } |   } | ||||||
|  ], |  ], | ||||||
|  "image_field": "image", |  "image_field": "image", | ||||||
|  "links": [], |  "links": [], | ||||||
|  "modified": "2022-06-17 11:43:07.550361", |  "modified": "2022-07-18 10:24:39.463386", | ||||||
|  "modified_by": "Administrator", |  "modified_by": "Administrator", | ||||||
|  "module": "MSP", |  "module": "MSP", | ||||||
|  "name": "IT Object", |  "name": "IT Object", | ||||||
|  | |||||||
							
								
								
									
										0
									
								
								msp/msp/doctype/msp_settings/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								msp/msp/doctype/msp_settings/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										8
									
								
								msp/msp/doctype/msp_settings/msp_settings.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								msp/msp/doctype/msp_settings/msp_settings.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | // Copyright (c) 2022, itsdave GmbH and contributors
 | ||||||
|  | // For license information, please see license.txt
 | ||||||
|  | 
 | ||||||
|  | frappe.ui.form.on('MSP Settings', { | ||||||
|  | 	// refresh: function(frm) {
 | ||||||
|  | 
 | ||||||
|  | 	// }
 | ||||||
|  | }); | ||||||
							
								
								
									
										52
									
								
								msp/msp/doctype/msp_settings/msp_settings.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								msp/msp/doctype/msp_settings/msp_settings.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,52 @@ | |||||||
|  | { | ||||||
|  |  "actions": [], | ||||||
|  |  "allow_rename": 1, | ||||||
|  |  "creation": "2022-07-18 10:23:49.010330", | ||||||
|  |  "doctype": "DocType", | ||||||
|  |  "editable_grid": 1, | ||||||
|  |  "engine": "InnoDB", | ||||||
|  |  "field_order": [ | ||||||
|  |   "open_it_cockpit_integration_section", | ||||||
|  |   "oitc_url", | ||||||
|  |   "oitc_api_key" | ||||||
|  |  ], | ||||||
|  |  "fields": [ | ||||||
|  |   { | ||||||
|  |    "fieldname": "open_it_cockpit_integration_section", | ||||||
|  |    "fieldtype": "Section Break", | ||||||
|  |    "label": "Open IT Cockpit Integration" | ||||||
|  |   }, | ||||||
|  |   { | ||||||
|  |    "fieldname": "oitc_url", | ||||||
|  |    "fieldtype": "Data", | ||||||
|  |    "label": "OITC URL" | ||||||
|  |   }, | ||||||
|  |   { | ||||||
|  |    "fieldname": "oitc_api_key", | ||||||
|  |    "fieldtype": "Password", | ||||||
|  |    "label": "OITC API Key" | ||||||
|  |   } | ||||||
|  |  ], | ||||||
|  |  "index_web_pages_for_search": 1, | ||||||
|  |  "issingle": 1, | ||||||
|  |  "links": [], | ||||||
|  |  "modified": "2022-07-18 10:23:49.010330", | ||||||
|  |  "modified_by": "Administrator", | ||||||
|  |  "module": "MSP", | ||||||
|  |  "name": "MSP Settings", | ||||||
|  |  "owner": "Administrator", | ||||||
|  |  "permissions": [ | ||||||
|  |   { | ||||||
|  |    "create": 1, | ||||||
|  |    "delete": 1, | ||||||
|  |    "email": 1, | ||||||
|  |    "print": 1, | ||||||
|  |    "read": 1, | ||||||
|  |    "role": "System Manager", | ||||||
|  |    "share": 1, | ||||||
|  |    "write": 1 | ||||||
|  |   } | ||||||
|  |  ], | ||||||
|  |  "sort_field": "modified", | ||||||
|  |  "sort_order": "DESC" | ||||||
|  | } | ||||||
							
								
								
									
										8
									
								
								msp/msp/doctype/msp_settings/msp_settings.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								msp/msp/doctype/msp_settings/msp_settings.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | # Copyright (c) 2022, itsdave GmbH and contributors | ||||||
|  | # For license information, please see license.txt | ||||||
|  | 
 | ||||||
|  | # import frappe | ||||||
|  | from frappe.model.document import Document | ||||||
|  | 
 | ||||||
|  | class MSPSettings(Document): | ||||||
|  | 	pass | ||||||
							
								
								
									
										8
									
								
								msp/msp/doctype/msp_settings/test_msp_settings.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								msp/msp/doctype/msp_settings/test_msp_settings.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | |||||||
|  | # Copyright (c) 2022, itsdave GmbH and Contributors | ||||||
|  | # See license.txt | ||||||
|  | 
 | ||||||
|  | # import frappe | ||||||
|  | import unittest | ||||||
|  | 
 | ||||||
|  | class TestMSPSettings(unittest.TestCase): | ||||||
|  | 	pass | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user