fix: delete contact email and phone along with contact

This commit is contained in:
Nabin Hait 2020-03-26 13:15:31 +05:30
parent ced6898fd7
commit 1aa8c2ecc4

View File

@ -7,6 +7,8 @@ import frappe
def create_test_contact_and_address():
frappe.db.sql('delete from tabContact')
frappe.db.sql('delete from `tabContact Email`')
frappe.db.sql('delete from `tabContact Phone`')
frappe.db.sql('delete from tabAddress')
frappe.db.sql('delete from `tabDynamic Link`')