removed on_trash method (#5757)

trying to update in doctype issue
fails to update if erpnext is not installed
This commit is contained in:
Shridhar Patil 2018-07-03 10:51:25 +05:30 committed by Nabin Hait
parent dda83a841c
commit e808da398e

View file

@ -40,10 +40,6 @@ class Contact(Document):
if not self.user and self.email_id:
self.user = frappe.db.get_value("User", {"email": self.email_id})
def on_trash(self):
frappe.db.sql("""update `tabIssue` set contact='' where contact=%s""",
self.name)
def get_link_for(self, link_doctype):
'''Return the link name, if exists for the given link DocType'''
for link in self.links: