fix: add route to report to chart actions list
This commit is contained in:
parent
946990d531
commit
f4d5e9ea0d
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue