fix: Remove Bundle Items table

This commit is contained in:
GangaManoj
2021-08-30 20:04:24 +05:30
parent 18680990bf
commit 4ca150f4ca
3 changed files with 1 additions and 27 deletions

View File

@@ -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) { company: function(frm) {

View File

@@ -61,8 +61,6 @@
"set_warehouse", "set_warehouse",
"items_section", "items_section",
"items", "items",
"bundle_items_section",
"packed_items",
"sb_last_purchase", "sb_last_purchase",
"total_qty", "total_qty",
"base_total", "base_total",
@@ -1139,31 +1137,13 @@
"fieldtype": "Link", "fieldtype": "Link",
"label": "Tax Withholding Category", "label": "Tax Withholding Category",
"options": "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", "icon": "fa fa-file-text",
"idx": 105, "idx": 105,
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2021-08-27 20:11:23.509147", "modified": "2021-08-30 20:03:14.008804",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Buying", "module": "Buying",
"name": "Purchase Order", "name": "Purchase Order",

View File

@@ -67,9 +67,6 @@ class PurchaseOrder(BuyingController):
self.set_received_qty_for_drop_ship_items() self.set_received_qty_for_drop_ship_items()
validate_inter_company_party(self.doctype, self.supplier, self.company, self.inter_company_order_reference) 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): def validate_with_previous_doc(self):
super(PurchaseOrder, self).validate_with_previous_doc({ super(PurchaseOrder, self).validate_with_previous_doc({
"Supplier Quotation": { "Supplier Quotation": {