From 5a3bc27e2cc9948a1bf39aec7be949bea5114da7 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 05:13:36 +0000 Subject: [PATCH] fix: python error in manufacture entry if transfer against is job card (backport #53615) (#53617) Co-authored-by: Mihir Kandoi fix: python error in manufacture entry if transfer against is job card (#53615) --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 7819189f082..5bb50d079af 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -2137,7 +2137,7 @@ class StockEntry(StockController): self.to_warehouse if self.purpose == "Send to Subcontractor" else "" ) - if original_item != item.get("item_code"): + if isinstance(original_item, str) and original_item != item.get("item_code"): item["original_item"] = original_item self.add_to_stock_entry_detail(item_dict)