mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
chore: Clean up patches
This commit is contained in:
@@ -23,10 +23,6 @@ def set_default_role(doc, method):
|
||||
doc.add_roles("Customer")
|
||||
elif link.link_doctype == "Supplier" and "Supplier" not in roles:
|
||||
doc.add_roles("Supplier")
|
||||
elif frappe.get_value("Student", dict(student_email_id=doc.email)) and "Student" not in roles:
|
||||
doc.add_roles("Student")
|
||||
elif frappe.get_value("Guardian", dict(email_address=doc.email)) and "Guardian" not in roles:
|
||||
doc.add_roles("Guardian")
|
||||
|
||||
|
||||
def create_customer_or_supplier():
|
||||
|
||||
Reference in New Issue
Block a user