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,