mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 18:51:21 +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:
@@ -504,9 +504,11 @@ class PickList(TransactionBase):
|
|||||||
picked_items_details = self.get_picked_items_details(items)
|
picked_items_details = self.get_picked_items_details(items)
|
||||||
self.item_location_map = frappe._dict()
|
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(
|
root_warehouse = frappe.db.get_value(
|
||||||
"Warehouse", {"company": self.company, "parent_warehouse": ["IS", "NOT SET"], "is_group": 1}
|
"Warehouse", {"company": self.company, "parent_warehouse": ["IS", "NOT SET"], "is_group": 1}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user