diff --git a/erpnext_datev/erpnext_datev/report/datev/datev.js b/erpnext_datev/erpnext_datev/report/datev/datev.js index f5000d6..289bc2c 100644 --- a/erpnext_datev/erpnext_datev/report/datev/datev.js +++ b/erpnext_datev/erpnext_datev/report/datev/datev.js @@ -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}`