From 973255d26172fe99d6aa7d65f4d14e7b50fc3a8b Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Wed, 11 Feb 2026 17:53:05 +0530 Subject: [PATCH] fix: prevent rows from being added to sub_assembly_items and mr_items (cherry picked from commit 25f979a825f7d6ab9c67ef713323f8cd6cfdcb8c) # Conflicts: # erpnext/manufacturing/doctype/production_plan/production_plan.js --- .../doctype/production_plan/production_plan.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index 09abcb6351e..90d85a0cf91 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js @@ -16,6 +16,12 @@ frappe.ui.form.on("Production Plan", { "Work Order": "Work Order / Subcontract PO", "Material Request": "Material Request", }; +<<<<<<< HEAD +======= + + frm.set_df_property("sub_assembly_items", "cannot_add_rows", true); + frm.set_df_property("mr_items", "cannot_add_rows", true); +>>>>>>> 25f979a825 (fix: prevent rows from being added to sub_assembly_items and mr_items) }, setup_queries(frm) {