Merge pull request #32502 from frappe/mergify/bp/version-13-hotfix/pr-32499

fix: TooManyWritesError during reposting of stock (backport #32499)
This commit is contained in:
Deepesh Garg
2022-10-05 17:29:25 +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()