mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
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:
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user