diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index ad56d8fe94..accaeb4498 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -267,7 +267,7 @@ class BuyingController(StockController): for d in self.get(raw_material_table): if [d.main_item_code, d.reference_name] not in parent_items: # mark for deletion from doclist - delete_list.append([d.main_item_code, d.reference_name]) + delete_list.append(d) # delete from doclist if delete_list: