Skip to content

Commit

Permalink
fix: concurrency issue while picking materials (#43087)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Sep 10, 2024
1 parent 4807ec2 commit 5c7dff0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/doctype/pick_list/pick_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ def _get_pick_list_items(self, items):
if self.name:
query = query.where(pi_item.parent != self.name)

query = query.for_update()

return query.run(as_dict=True)

def _get_product_bundles(self) -> dict[str, str]:
Expand Down

0 comments on commit 5c7dff0

Please sign in to comment.