fix: new bom version should not recalculate operations through routing (#55370)

This commit is contained in:
Mihir Kandoi
2026-05-28 14:59:37 +05:30
committed by GitHub
parent acb10299db
commit 10384b3b2e

View File

@@ -583,7 +583,7 @@ frappe.ui.form.on("BOM", {
}, },
routing(frm) { routing(frm) {
if (frm.doc.routing) { if (frm.doc.routing && frm.doc.with_operations && !frm.doc.operations) {
frappe.call({ frappe.call({
doc: frm.doc, doc: frm.doc,
method: "get_routing", method: "get_routing",