From 34546d02be6c4038265060e1a6dc393097b2627d Mon Sep 17 00:00:00 2001 From: GangaManoj Date: Fri, 27 Aug 2021 02:32:34 +0530 Subject: [PATCH] fix: Disable Add Row and Delete Row for Bundle Items --- erpnext/buying/doctype/purchase_order/purchase_order.js | 3 +++ erpnext/selling/doctype/quotation/quotation.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js index 233a9c87e59..51adbe5e37b 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.js +++ b/erpnext/buying/doctype/purchase_order/purchase_order.js @@ -28,6 +28,9 @@ frappe.ui.form.on("Purchase Order", { } }); + frm.set_df_property('packed_items', 'cannot_add_rows', true); + frm.set_df_property('packed_items', 'cannot_delete_rows', true); + }, company: function(frm) { diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index 5a0d9c90655..474cf56fc1b 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -18,6 +18,8 @@ frappe.ui.form.on('Quotation', { } }); + frm.set_df_property('packed_items', 'cannot_add_rows', true); + frm.set_df_property('packed_items', 'cannot_delete_rows', true); }, refresh: function(frm) {