diff --git a/erpnext/projects/doctype/time_log/time_log.js b/erpnext/projects/doctype/time_log/time_log.js index 19fa5bedf8..536ddf8c9c 100644 --- a/erpnext/projects/doctype/time_log/time_log.js +++ b/erpnext/projects/doctype/time_log/time_log.js @@ -7,7 +7,7 @@ frappe.ui.form.on("Time Log", "onload", function(frm) { if (frm.doc.for_manufacturing) { frappe.ui.form.trigger("Time Log", "production_order"); } - if (frm.doc.to_time && frm.doc.to_time) { + if (frm.doc.from_time && frm.doc.to_time) { frappe.ui.form.trigger("Time Log", "to_time"); } });