chore: Clean up patches

This commit is contained in:
Deepesh Garg
2022-04-29 12:42:29 +05:30
parent 2ee20d35d9
commit f25251bb70
5 changed files with 14 additions and 34 deletions

View File

@@ -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():