From 80c98cdcf4838301ffa9a123472291a3529bdab2 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) --- .../manufacturing/doctype/production_plan/production_plan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index 308eb32ca90..22c87fe5d6a 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js @@ -24,8 +24,8 @@ frappe.ui.form.on("Production Plan", { "Material Request": "Material Request", }; - frm.set_df_property("sub_assembly_items", "cannot_delete_rows", true); - frm.set_df_property("mr_items", "cannot_delete_rows", true); + frm.set_df_property("sub_assembly_items", "cannot_add_rows", true); + frm.set_df_property("mr_items", "cannot_add_rows", true); }, setup_queries(frm) {