fix: concurrency issue while picking materials (backport #43087) (#43152)

fix: concurrency issue while picking materials (#43087)

(cherry picked from commit 5c7dff0e84)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-09-10 17:01:53 +05:30
committed by GitHub
parent f11e298984
commit cd57e009dd

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]: