fix: add route to report to chart actions list

This commit is contained in:
prssanna 2020-02-17 18:48:16 +05:30
parent 946990d531
commit f4d5e9ea0d

View file

@ -281,6 +281,14 @@ class DashboardChart {
handler: () => {
frappe.set_route('List', this.chart_doc.document_type);
}
});
} else if (this.chart_doc.chart_type === 'Report') {
actions.push({
label: __("{0} Report", [this.chart_doc.report_name]),
action: 'action-list',
handler: () => {
frappe.set_route('query-report', this.chart_doc.report_name);
}
})
}
this.set_chart_actions(actions);