mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 23:05:12 +00:00
fix: warehouse issue in pick list (#39826)
(cherry picked from commit 159a123dc7)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -77,6 +77,9 @@ frappe.ui.form.on('Pick List', {
|
|||||||
},
|
},
|
||||||
freeze: 1,
|
freeze: 1,
|
||||||
freeze_message: __("Setting Item Locations..."),
|
freeze_message: __("Setting Item Locations..."),
|
||||||
|
callback(r) {
|
||||||
|
refresh_field("locations");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -348,9 +348,9 @@ class PickList(Document):
|
|||||||
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 = None
|
from_warehouses = [self.parent_warehouse] if self.parent_warehouse else []
|
||||||
if self.parent_warehouse:
|
if self.parent_warehouse:
|
||||||
from_warehouses = get_descendants_of("Warehouse", self.parent_warehouse)
|
from_warehouses.extend(get_descendants_of("Warehouse", self.parent_warehouse))
|
||||||
|
|
||||||
# Create replica before resetting, to handle empty table on update after submit.
|
# Create replica before resetting, to handle empty table on update after submit.
|
||||||
locations_replica = self.get("locations")
|
locations_replica = self.get("locations")
|
||||||
|
|||||||
Reference in New Issue
Block a user