fix: Only show importable doctypes
This commit is contained in:
parent
b099414cf8
commit
c3d85cb4bd
1 changed files with 8 additions and 0 deletions
|
|
@ -26,6 +26,14 @@ frappe.ui.form.on('Data Import Beta', {
|
|||
}, 2000);
|
||||
}
|
||||
});
|
||||
|
||||
frm.set_query('reference_doctype', () => {
|
||||
return {
|
||||
filters: {
|
||||
allow_import: 1
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
refresh(frm) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue