From bc07b2d3e585e2b86d974dea940676a1255da133 Mon Sep 17 00:00:00 2001 From: Pandiyan P Date: Wed, 13 May 2026 11:51:49 +0530 Subject: [PATCH] fix: add warehouse vaildation for repack entry (#54866) --- 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 088ce002772..2951b7272b3 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -845,7 +845,7 @@ class StockEntry(StockController, SubcontractingInwardController): else: frappe.throw(_("Target warehouse is mandatory for row {0}").format(d.idx)) - if self.purpose == "Manufacture": + if self.purpose in ["Manufacture", "Repack"]: if d.is_finished_item or d.type or d.is_legacy_scrap_item: d.s_warehouse = None if not d.t_warehouse: