Naming series increase even if there is an exception while saving the invoice from the backend (#14938)

This commit is contained in:
rohitwaghchaure 2018-07-17 17:20:15 +05:30 committed by Nabin Hait
parent a76067eea1
commit 6863b03790

View File

@ -507,5 +507,6 @@ def save_invoice(doc, name, name_list):
name_list.append(name)
except Exception:
frappe.log_error(frappe.get_traceback())
frappe.db.rollback()
return name_list