Removed duplicate name check.

This commit is contained in:
Ty Reynolds
2026-05-04 13:59:05 -04:00
parent 4cc7a2aa28
commit 74d3d7f5c1

View File

@@ -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()