fix: concurrency issue while picking materials (#43087)

This commit is contained in:
rohitwaghchaure
2024-09-10 15:11:13 +05:30
committed by GitHub
parent 4807ec266e
commit 5c7dff0e84

View File

@@ -650,6 +650,8 @@ class PickList(Document):
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]: