diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index 12d5de362e..27bb8845dd 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)