fix: download button (#22652)

This commit is contained in:
Raffael Meyer 2020-07-12 13:56:27 +02:00 committed by GitHub
parent 83cd1dcc44
commit 193e12f02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ frappe.query_reports["DATEV"] = {
}
],
onload: function(query_report) {
query_report.page.add_inner_button("Download DATEV Export", () => {
query_report.page.add_menu_item(__("Download DATEV File"), () => {
const filters = JSON.stringify(query_report.get_values());
window.open(`/api/method/erpnext.regional.report.datev.datev.download_datev_csv?filters=${filters}`);
});