Skip to content

Commit

Permalink
fix: deprecate unused create_contact
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Nov 12, 2023
1 parent d3d1023 commit 6f2b34e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/selling/doctype/customer/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
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
Expand Down Expand Up @@ -303,6 +304,7 @@ def set_loyalty_program(self):
)


@deprecated
def create_contact(contact, party_type, party, email):
"""Create contact based on given contact name"""
first, middle, last = parse_full_name(contact)
Expand Down

0 comments on commit 6f2b34e

Please sign in to comment.