mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
fix:appointment tests exist check
This commit is contained in:
@@ -19,7 +19,10 @@ def create_test_lead():
|
|||||||
return test_lead
|
return test_lead
|
||||||
|
|
||||||
def create_test_appointments():
|
def create_test_appointments():
|
||||||
if frappe.db.exists('Appointment',filters={'email':'test@example.com'}):
|
if frappe.db.exists({
|
||||||
|
'doctype':'Appointment',
|
||||||
|
'email':'test@example.com'
|
||||||
|
}):
|
||||||
return
|
return
|
||||||
test_appointment = frappe.get_doc({
|
test_appointment = frappe.get_doc({
|
||||||
'doctype':'Appointment',
|
'doctype':'Appointment',
|
||||||
|
|||||||
Reference in New Issue
Block a user