From b969662b6c2d6f90279b149d3096ed490f8ee2bc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 06:42:18 +0000 Subject: [PATCH] fix: add warehouse vaildation for repack entry (backport #54866) (#54900) * fix: add warehouse vaildation for repack entry (#54866) (cherry picked from commit bc07b2d3e585e2b86d974dea940676a1255da133) # Conflicts: # erpnext/stock/doctype/stock_entry/stock_entry.py * chore: resolve conflicts --------- Co-authored-by: Pandiyan P Co-authored-by: Mihir Kandoi --- 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 ee832b8c6bb..a367dc2dc95 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -774,7 +774,7 @@ class StockEntry(StockController): 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.is_scrap_item: d.s_warehouse = None if not d.t_warehouse: