Skip to content

Commit

Permalink
fix: TooManyWritesError during reposting of stock
Browse files Browse the repository at this point in the history
(cherry picked from commit aaabba9)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Oct 5, 2022
1 parent d6888bc commit 73742ff
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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()
Expand Down

0 comments on commit 73742ff

Please sign in to comment.