fix: Add download with data checkbox (#6494)

This commit is contained in:
Shreya Shah 2018-11-20 15:57:21 +05:30 committed by Suraj Shetty
parent ccb8c716a2
commit d74da75a8d

View file

@ -200,6 +200,13 @@ frappe.data_import.download_dialog = function(frm) {
"options": "Excel\nCSV",
"default": "Excel"
},
{
"label": __("Download with Data"),
"fieldname": "with_data",
"fieldtype": "Check",
"hidden": !frm.doc.overwrite,
"default": 1
},
{
"label": __("Select All"),
"fieldname": "select_all",
@ -270,7 +277,7 @@ frappe.data_import.download_dialog = function(frm) {
doctype: frm.doc.reference_doctype,
parent_doctype: frm.doc.reference_doctype,
select_columns: JSON.stringify(columns),
with_data: frm.doc.overwrite,
with_data: frm.doc.overwrite && data.with_data,
all_doctypes: true,
file_type: data.file_type,
template: true