From 35388e7a04738aedff2cae423f212831fd5471ee Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 10 Feb 2025 09:27:36 +0530 Subject: [PATCH] fix: not able to select the item in the sales invoice --- erpnext/stock/get_item_details.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index f44057b2a96..6702b340aff 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -193,6 +193,9 @@ def update_stock(ctx, out, doc=None): and out.warehouse and out.stock_qty > 0 ): + if doc and isinstance(doc, dict): + doc = frappe._dict(doc) + kwargs = frappe._dict( { "item_code": ctx.item_code,