From 10a40a6d9b044f1b7d97d391785f54f5ecbf6a03 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 05:15:51 +0000 Subject: [PATCH] fix: python error in manufacture entry if transfer against is job card (backport #53615) (#53618) 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 97da1eac681..728096880d0 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -2421,7 +2421,7 @@ class StockEntry(StockController, SubcontractingInwardController): 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)