diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 79d547f6655..dcf04f44175 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -1895,10 +1895,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)