From 596c2571f6e56ced85da3ad0577137618943e376 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 15:24:51 +0000 Subject: [PATCH] fix: add warehouse vaildation for repack entry (backport #54866) (#54901) fix: add warehouse vaildation for repack entry (#54866) (cherry picked from commit bc07b2d3e585e2b86d974dea940676a1255da133) Co-authored-by: Pandiyan P --- 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 d8fa53210da..33301f152fe 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -852,7 +852,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: