From 055ac82b394174222df6c6f755f6de421aaa8e1a Mon Sep 17 00:00:00 2001 From: GangaManoj Date: Mon, 30 Aug 2021 20:04:24 +0530 Subject: [PATCH] fix: Remove Bundle Items table --- .../doctype/purchase_order/purchase_order.js | 3 --- .../purchase_order/purchase_order.json | 22 +------------------ .../doctype/purchase_order/purchase_order.py | 3 --- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js index d6f0f0e61c..521432d296 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.js +++ b/erpnext/buying/doctype/purchase_order/purchase_order.js @@ -28,9 +28,6 @@ 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/buying/doctype/purchase_order/purchase_order.json b/erpnext/buying/doctype/purchase_order/purchase_order.json index dd88c2d850..ef54538fcd 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.json +++ b/erpnext/buying/doctype/purchase_order/purchase_order.json @@ -61,8 +61,6 @@ "set_warehouse", "items_section", "items", - "bundle_items_section", - "packed_items", "sb_last_purchase", "total_qty", "base_total", @@ -1139,31 +1137,13 @@ "fieldtype": "Link", "label": "Tax Withholding Category", "options": "Tax Withholding Category" - }, - { - "depends_on": "packed_items", - "fieldname": "packed_items", - "fieldtype": "Table", - "label": "Bundle Items", - "options": "Packed Item", - "print_hide": 1 - }, - { - "collapsible": 1, - "collapsible_depends_on": "packed_items", - "depends_on": "packed_items", - "fieldname": "bundle_items_section", - "fieldtype": "Section Break", - "label": "Bundle Items", - "options": "fa fa-suitcase", - "print_hide": 1 } ], "icon": "fa fa-file-text", "idx": 105, "is_submittable": 1, "links": [], - "modified": "2021-08-27 20:11:23.509147", + "modified": "2021-08-30 20:03:14.008804", "modified_by": "Administrator", "module": "Buying", "name": "Purchase Order", diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index e7d422d9cc..ca3bd90960 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -67,9 +67,6 @@ class PurchaseOrder(BuyingController): self.set_received_qty_for_drop_ship_items() validate_inter_company_party(self.doctype, self.supplier, self.company, self.inter_company_order_reference) - from erpnext.stock.doctype.packed_item.packed_item import make_packing_list - make_packing_list(self) - def validate_with_previous_doc(self): super(PurchaseOrder, self).validate_with_previous_doc({ "Supplier Quotation": {