diff --git a/frappe/modules/patch_handler.py b/frappe/modules/patch_handler.py index d5a37f52a5..00d0e8167d 100644 --- a/frappe/modules/patch_handler.py +++ b/frappe/modules/patch_handler.py @@ -175,6 +175,7 @@ def execute_patch(patchmodule, method=None, methodargs=None): start_time = time.time() frappe.db.begin() + frappe.db.auto_commit_on_many_writes = 0 try: if patchmodule: if patchmodule.startswith("finally:"):