refactor: remove obsolete function call (#42162)

(cherry picked from commit 4512432816)
This commit is contained in:
Markus Lobedann
2024-07-03 12:21:12 +02:00
committed by Mergify
parent 26c99351fd
commit 2cf82561f6

View File

@@ -36,7 +36,6 @@ frappe.ui.form.on("Import Supplier Invoice", {
toggle_read_only_fields: function (frm) {
if (["File Import Completed", "Processing File Data"].includes(frm.doc.status)) {
cur_frm.set_read_only();
cur_frm.refresh_fields();
frm.set_df_property("import_invoices", "hidden", 1);
} else {
frm.set_df_property("import_invoices", "hidden", 0);