From c69bb746ce44021f2cd68b084d8103b096884d9b Mon Sep 17 00:00:00 2001 From: iamkhanraheel Date: Sun, 22 Jun 2025 21:33:02 +0530 Subject: [PATCH] fix: func parameters (cherry picked from commit ce6ace4b8ab5d774b62ebbe65ef06cb71ddf40a3) --- 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 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)