mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
fix: update item details only in draft state
(cherry picked from commit 689172ff22)
This commit is contained in:
@@ -74,8 +74,11 @@ class PickList(TransactionBase):
|
||||
if self.has_reserved_stock():
|
||||
self.set_onload("has_reserved_stock", True)
|
||||
|
||||
for item in self.get("locations"):
|
||||
item.update(get_item_details(item.item_code, item.uom, item.warehouse, self.company))
|
||||
if self.docstatus.is_draft() and not hasattr(self, "_action"):
|
||||
company = self.company
|
||||
|
||||
for item in self.get("locations"):
|
||||
item.update(get_item_details(item.item_code, item.uom, item.warehouse, company))
|
||||
|
||||
def validate(self):
|
||||
self.validate_expired_batches()
|
||||
|
||||
Reference in New Issue
Block a user