From 82b200e497c1964c9660bcfe67fdedb627059029 Mon Sep 17 00:00:00 2001 From: Vishal Dhayagude Date: Fri, 17 Nov 2017 11:01:42 +0530 Subject: [PATCH] [fix] Patch fail (#11623) --- erpnext/patches/v9_1/create_issue_opportunity_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v9_1/create_issue_opportunity_type.py b/erpnext/patches/v9_1/create_issue_opportunity_type.py index b5070b027f9..af7ee5d6c3b 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 @@ def execute(): # 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()