Merge pull request #32499 from rohitwaghchaure/fixed-TooManyWritesError-for-reposting

fix: TooManyWritesError during reposting of stock
This commit is contained in:
Deepesh Garg
2022-10-05 16:05:12 +05:30
committed by GitHub

View File

@@ -128,6 +128,9 @@ def repost(doc):
if not frappe.db.exists("Repost Item Valuation", doc.name):
return
# This is to avoid TooManyWritesError in case of large reposts
frappe.db.MAX_WRITES_PER_TRANSACTION *= 4
doc.set_status("In Progress")
if not frappe.flags.in_test:
frappe.db.commit()