mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: Blank chart preview
This commit is contained in:
@@ -2,12 +2,6 @@ frappe.ui.form.on('Chart of Accounts Importer', {
|
|||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
frm.set_value("company", "");
|
frm.set_value("company", "");
|
||||||
frm.set_value("import_file", "");
|
frm.set_value("import_file", "");
|
||||||
|
|
||||||
frappe.db.get_value('File', {'attached_to_doctype': 'Chart of Accounts Importer'}, 'file_url', (r) => {
|
|
||||||
if (r) {
|
|
||||||
frm.set_value('import_file', r.file_url);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
// disable default save
|
// disable default save
|
||||||
|
|||||||
Reference in New Issue
Block a user