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