fix: Disable Add Row and Delete Row for Bundle Items

This commit is contained in:
GangaManoj 2021-08-27 02:32:34 +05:30
parent bdbd4f83ab
commit 4353c5e339
2 changed files with 5 additions and 0 deletions

View File

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

View File

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