mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[hotfix] ignore if project type is None (#10284)
This commit is contained in:
@@ -9,7 +9,7 @@ def execute():
|
|||||||
project_types = frappe.db.sql_list('select distinct project_type from tabProject')
|
project_types = frappe.db.sql_list('select distinct project_type from tabProject')
|
||||||
|
|
||||||
for project_type in project_types:
|
for project_type in project_types:
|
||||||
if not frappe.db.exists("Project Type", project_type):
|
if project_type and not frappe.db.exists("Project Type", project_type):
|
||||||
p_type = frappe.get_doc({
|
p_type = frappe.get_doc({
|
||||||
"doctype": "Project Type",
|
"doctype": "Project Type",
|
||||||
"project_type": project_type
|
"project_type": project_type
|
||||||
|
|||||||
Reference in New Issue
Block a user