diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index a75f5d30b21..8b323c0c33b 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -1869,10 +1869,9 @@ class StockEntry(StockController): ) @frappe.whitelist() - def get_items(self, qty, production_item): + def get_items(self, qty=None, production_item=None): self.set("items", []) self.validate_work_order() - # print(qty, 'qty\n\n') if self.purpose == "Disassemble" and qty is not None: return self.get_items_for_disassembly(qty, production_item)