Skip to content

Commit

Permalink
Merge pull request #32 from navariltd/meter-reading
Browse files Browse the repository at this point in the history
fix: bom creation service request
  • Loading branch information
muruthigitau authored Nov 11, 2024
2 parents d367b7f + 34ec319 commit b63b6ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
);
Expand Down

0 comments on commit b63b6ec

Please sign in to comment.