From 6f2b34e7d52e5cdfffccddecff9c0408cdb168c1 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 12 Nov 2023 20:01:10 +0100 Subject: [PATCH] fix: deprecate unused create_contact --- erpnext/selling/doctype/customer/customer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index 12d5de362e1..27bb8845dd6 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -15,6 +15,7 @@ from frappe.model.mapper import get_mapped_doc from frappe.model.naming import set_name_by_naming_series, set_name_from_naming_options from frappe.model.utils.rename_doc import update_linked_doctypes from frappe.utils import cint, cstr, flt, get_formatted_email, today +from frappe.utils.deprecations import deprecated from frappe.utils.user import get_users_with_role from erpnext.accounts.party import get_dashboard_info, validate_party_accounts # noqa @@ -303,6 +304,7 @@ class Customer(TransactionBase): ) +@deprecated def create_contact(contact, party_type, party, email): """Create contact based on given contact name""" first, middle, last = parse_full_name(contact)