Skip to content

Commit

Permalink
fix: concurrency issue while picking materials (#43087)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c7dff0)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Sep 10, 2024
1 parent 50b4257 commit a7e009f
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 a7e009f

Please sign in to comment.