From ce6ace4b8ab5d774b62ebbe65ef06cb71ddf40a3 Mon Sep 17 00:00:00 2001 From: iamkhanraheel Date: Sun, 22 Jun 2025 21:33:02 +0530 Subject: [PATCH] fix: func parameters --- erpnext/stock/doctype/stock_entry/stock_entry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)