Skip to content

Commit

Permalink
feat: download as primary action
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Apr 30, 2024
1 parent 209955d commit 6ce2a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext_datev/erpnext_datev/report/datev/datev.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ frappe.query_reports["DATEV"] = {
}
});

query_report.page.add_menu_item(__("Download DATEV File"), () => {
query_report.page.set_primary_action(__("Download DATEV File"), () => {
const filters = encodeURIComponent(JSON.stringify(query_report.get_values()));
window.open(
`/api/method/erpnext_datev.erpnext_datev.report.datev.datev.download_datev_csv?filters=${filters}`
Expand Down

0 comments on commit 6ce2a82

Please sign in to comment.