mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
fix: concurrency issue while picking materials (#43087)
This commit is contained in:
@@ -650,6 +650,8 @@ class PickList(Document):
|
|||||||
if self.name:
|
if self.name:
|
||||||
query = query.where(pi_item.parent != self.name)
|
query = query.where(pi_item.parent != self.name)
|
||||||
|
|
||||||
|
query = query.for_update()
|
||||||
|
|
||||||
return query.run(as_dict=True)
|
return query.run(as_dict=True)
|
||||||
|
|
||||||
def _get_product_bundles(self) -> dict[str, str]:
|
def _get_product_bundles(self) -> dict[str, str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user