Skip to content

Commit 80c98cd

Browse files
Shllokkkmergify[bot]
authored andcommitted
fix: prevent rows from being added to sub_assembly_items and mr_items
(cherry picked from commit 25f979a)
1 parent 4a8363e commit 80c98cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erpnext/manufacturing/doctype/production_plan/production_plan.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ frappe.ui.form.on("Production Plan", {
2424
"Material Request": "Material Request",
2525
};
2626

27-
frm.set_df_property("sub_assembly_items", "cannot_delete_rows", true);
28-
frm.set_df_property("mr_items", "cannot_delete_rows", true);
27+
frm.set_df_property("sub_assembly_items", "cannot_add_rows", true);
28+
frm.set_df_property("mr_items", "cannot_add_rows", true);
2929
},
3030

3131
setup_queries(frm) {

0 commit comments

Comments
 (0)