fix: prevent rows from being added to sub_assembly_items and mr_items

(cherry picked from commit 25f979a825)
This commit is contained in:
Shllokkk
2026-02-11 17:53:05 +05:30
committed by Mergify
parent 4a8363e7da
commit 80c98cdcf4

View File

@@ -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) {