diff --git a/erpnext/patches/v15_0/set_company_on_pos_inv_merge_log.py b/erpnext/patches/v15_0/set_company_on_pos_inv_merge_log.py index 9a2c8143680..21efdcfe936 100644 --- a/erpnext/patches/v15_0/set_company_on_pos_inv_merge_log.py +++ b/erpnext/patches/v15_0/set_company_on_pos_inv_merge_log.py @@ -11,3 +11,5 @@ def execute(): if log.pos_closing_entry and frappe.db.exists("POS Closing Entry", log.pos_closing_entry): company = frappe.db.get_value("POS Closing Entry", log.pos_closing_entry, "company") frappe.db.set_value("POS Invoice Merge Log", log.name, "company", company) + + frappe.db.auto_commit_on_many_writes = 0