fix(stock): priorities pick list parent warehouse (backport #54788) (#54793)

fix(stock): priorities pick list parent warehouse (#54788)

(cherry picked from commit 4e850f31d5)

Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2026-05-08 12:42:02 +00:00
committed by GitHub
parent 338d1904c1
commit d3bc629f68

View File

@@ -522,9 +522,11 @@ class PickList(TransactionBase):
picked_items_details = self.get_picked_items_details(items)
self.item_location_map = frappe._dict()
from_warehouses = [self.parent_warehouse] if self.parent_warehouse else []
from_warehouses = []
if self.parent_warehouse:
from_warehouses = [self.parent_warehouse]
if self.work_order:
elif self.work_order:
root_warehouse = frappe.db.get_value(
"Warehouse", {"company": self.company, "parent_warehouse": ["IS", "NOT SET"], "is_group": 1}
)