mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Merge pull request #32503 from frappe/mergify/bp/version-14-hotfix/pr-32499
fix: TooManyWritesError during reposting of stock (backport #32499)
This commit is contained in:
@@ -128,6 +128,9 @@ def repost(doc):
|
|||||||
if not frappe.db.exists("Repost Item Valuation", doc.name):
|
if not frappe.db.exists("Repost Item Valuation", doc.name):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# This is to avoid TooManyWritesError in case of large reposts
|
||||||
|
frappe.db.MAX_WRITES_PER_TRANSACTION *= 4
|
||||||
|
|
||||||
doc.set_status("In Progress")
|
doc.set_status("In Progress")
|
||||||
if not frappe.flags.in_test:
|
if not frappe.flags.in_test:
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user