commit | 76d3a6c2ba288f5bceba87c3ef3c869403b41ed2 | [log] [tgz] |
---|---|---|
author | Neil Trini Lasrado <neil@frappe.io> | Tue Mar 10 17:51:40 2015 +0530 |
committer | Neil Trini Lasrado <neil@frappe.io> | Thu Mar 12 17:51:50 2015 +0530 |
tree | 82a1052c10b02c3d80ea0fd67e6d1e5394769cc1 | |
parent | 1ca0b74e033046dbbc5b5b970e0e6097818b90e8 [diff] |
bug fix - show time log in production order operations
diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index a8911c9..7ec9c96 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js
@@ -192,8 +192,9 @@ }); }, - show_time_logs: function(doc, doctype, name) { - frappe.route_options = {"operation": name}; + show_time_logs: function(doc, cdt, cdn) { + var child = locals[cdt][cdn] + frappe.route_options = {"operation_id": child.name}; frappe.set_route("List", "Time Log"); },