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

Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
fix: new bom version should not recalculate operations through routing (#55370)
This commit is contained in:
mergify[bot]
2026-05-28 16:01:36 +05:30
committed by GitHub
parent 41bf2f32fd
commit 4669ff295f

View File

@@ -438,7 +438,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",