mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-03 02:25:00 +00:00
Merge pull request #49809 from frappe/mergify/bp/version-15-hotfix/pr-49748
fix: update item details only in draft state (backport #49748)
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