From 74d3d7f5c197f8ce239cf2e8647287043cd3ca2d Mon Sep 17 00:00:00 2001 From: Ty Reynolds Date: Mon, 4 May 2026 13:59:05 -0400 Subject: [PATCH] Removed duplicate name check. --- ns_app/api/customer.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ns_app/api/customer.py b/ns_app/api/customer.py index 3f7c31c..1461865 100644 --- a/ns_app/api/customer.py +++ b/ns_app/api/customer.py @@ -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()