[fix] Patch fail (#11623)
diff --git a/erpnext/patches/v9_1/create_issue_opportunity_type.py b/erpnext/patches/v9_1/create_issue_opportunity_type.py
index b5070b0..af7ee5d 100644
--- a/erpnext/patches/v9_1/create_issue_opportunity_type.py
+++ b/erpnext/patches/v9_1/create_issue_opportunity_type.py
@@ -30,5 +30,5 @@
# fixtures
for name in ('Hub', _('Sales'), _('Support'), _('Maintenance')):
- if not frappe.db.exists('Opportunity', name):
+ if not frappe.db.exists('Opportunity Type', name):
frappe.get_doc(dict(doctype = 'Opportunity Type', name=name)).insert()