mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 07:38:29 +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():
|
if self.has_reserved_stock():
|
||||||
self.set_onload("has_reserved_stock", True)
|
self.set_onload("has_reserved_stock", True)
|
||||||
|
|
||||||
for item in self.get("locations"):
|
if self.docstatus.is_draft() and not hasattr(self, "_action"):
|
||||||
item.update(get_item_details(item.item_code, item.uom, item.warehouse, self.company))
|
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):
|
def validate(self):
|
||||||
self.validate_expired_batches()
|
self.validate_expired_batches()
|
||||||
|
|||||||
Reference in New Issue
Block a user