From 730bcc8c035bc5aec5173f1feb0b06a2e5c664de Mon Sep 17 00:00:00 2001 From: Mohammad Hasnain Mohsin Rajan Date: Thu, 20 May 2021 20:05:00 +0530 Subject: [PATCH] fix: do not explicitly commit Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> --- frappe/core/doctype/document_naming_rule/document_naming_rule.py | 1 - 1 file changed, 1 deletion(-) diff --git a/frappe/core/doctype/document_naming_rule/document_naming_rule.py b/frappe/core/doctype/document_naming_rule/document_naming_rule.py index 7fa7c73efd..653c056caa 100644 --- a/frappe/core/doctype/document_naming_rule/document_naming_rule.py +++ b/frappe/core/doctype/document_naming_rule/document_naming_rule.py @@ -35,4 +35,3 @@ class DocumentNamingRule(Document): def update_current(name, new_counter): frappe.only_for('System Manager') frappe.db.set_value('Document Naming Rule', name, 'counter', new_counter) - frappe.db.commit()