Time Log - to_time trigger called on_load to calculate hours if Tl is created via Calender
diff --git a/erpnext/projects/doctype/time_log/time_log.js b/erpnext/projects/doctype/time_log/time_log.js
index ba93301..19fa5be 100644
--- a/erpnext/projects/doctype/time_log/time_log.js
+++ b/erpnext/projects/doctype/time_log/time_log.js
@@ -7,6 +7,9 @@
if (frm.doc.for_manufacturing) {
frappe.ui.form.trigger("Time Log", "production_order");
}
+ if (frm.doc.to_time && frm.doc.to_time) {
+ frappe.ui.form.trigger("Time Log", "to_time");
+ }
});
frappe.ui.form.on("Time Log", "refresh", function(frm) {