Removed duplicate name check.
This commit is contained in:
@@ -19,9 +19,6 @@ def create_customer_full(**data):
|
||||
if not data.get(field):
|
||||
frappe.throw(_(f"Missing required field: {field}"))
|
||||
|
||||
# Prevent duplicates
|
||||
if frappe.db.exists("Customer", {"customer_name": data["customer_name"]}):
|
||||
frappe.throw(_("Customer already exists"))
|
||||
|
||||
try:
|
||||
frappe.db.begin()
|
||||
|
||||
Reference in New Issue
Block a user