From 34ec3192b38d76c67bc97127f6ffff46db2a47ec Mon Sep 17 00:00:00 2001 From: muruthigitau Date: Mon, 11 Nov 2024 16:09:39 +0300 Subject: [PATCH] fix: bom creation service request --- .../utility_service_request/utility_service_request.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utility_billing/utility_billing/doctype/utility_service_request/utility_service_request.js b/utility_billing/utility_billing/doctype/utility_service_request/utility_service_request.js index b5f5164..6822ece 100644 --- a/utility_billing/utility_billing/doctype/utility_service_request/utility_service_request.js +++ b/utility_billing/utility_billing/doctype/utility_service_request/utility_service_request.js @@ -292,7 +292,11 @@ function addActionButtons(frm) { frm.add_custom_button( __("BOM"), function () { - open_bom_creation_modal(frm); + frappe.model.with_doctype("BOM", function () { + const bom = frappe.model.get_new_doc("BOM"); + bom.utility_service_request = frm.doc.name; + frappe.set_route("Form", "BOM", bom.name); + }); }, __("Create") );