fix: project desk
This commit is contained in:
		
							parent
							
								
									0b10c6a1bc
								
							
						
					
					
						commit
						6277367d21
					
				| @ -3,6 +3,7 @@ | ||||
| 
 | ||||
| import frappe | ||||
| import json | ||||
| from frappe import _ | ||||
| 
 | ||||
| def get_company_for_dashboards(): | ||||
| 	company = frappe.defaults.get_defaults().company | ||||
| @ -37,10 +38,11 @@ def get_charts(): | ||||
| 		{ | ||||
| 			'doctype': 'Dashboard Chart', | ||||
| 			'name': 'Project Summary', | ||||
| 			'chart_name': 'Project Summary', | ||||
| 			'chart_name': _('Project Summary'), | ||||
| 			'chart_type': 'Report', | ||||
| 			'report_name': 'Project Summary', | ||||
| 			'is_public': 1, | ||||
| 			'is_custom': 1, | ||||
| 			'filters_json': json.dumps({"company": company.name, "status": "Open"}), | ||||
| 			'type': 'Bar', | ||||
| 			'custom_options': '{"type": "bar", "colors": ["#fc4f51", "#78d6ff", "#7575ff"], "axisOptions": { "shortenYAxisNumbers": 1}, "barOptions": { "stacked": 1 }}', | ||||
|  | ||||
| @ -29,10 +29,11 @@ | ||||
|  "docstatus": 0, | ||||
|  "doctype": "Desk Page", | ||||
|  "extends_another_page": 0, | ||||
|  "hide_custom": 0, | ||||
|  "idx": 0, | ||||
|  "is_standard": 1, | ||||
|  "label": "Projects", | ||||
|  "modified": "2020-05-04 20:27:51.591365", | ||||
|  "modified": "2020-05-19 21:09:52.031828", | ||||
|  "modified_by": "Administrator", | ||||
|  "module": "Projects", | ||||
|  "name": "Projects", | ||||
| @ -65,6 +66,11 @@ | ||||
|    "label": "Project Billing Summary", | ||||
|    "link_to": "Project Billing Summary", | ||||
|    "type": "Report" | ||||
|   }, | ||||
|   { | ||||
|    "label": "Project Dashboard", | ||||
|    "link_to": "Project", | ||||
|    "type": "Dashboard" | ||||
|   } | ||||
|  ] | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user