mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
fix: Clear merge conflicts
- 'get_project_template' was removed a month back - in 'make_project' insert the project directly as a check for it is there in the beginning.
This commit is contained in:
@@ -108,11 +108,6 @@ def make_project(args):
|
||||
if args.project_name and frappe.db.exists("Project", {"project_name": args.project_name}):
|
||||
return frappe.get_doc("Project", {"project_name": args.project_name})
|
||||
|
||||
if args.project_template_name:
|
||||
template = make_project_template(args.project_template_name)
|
||||
else:
|
||||
template = get_project_template()
|
||||
|
||||
project = frappe.get_doc(dict(
|
||||
doctype = 'Project',
|
||||
project_name = args.project_name,
|
||||
@@ -124,8 +119,7 @@ def make_project(args):
|
||||
template = make_project_template(args.project_template_name)
|
||||
project.project_template = template.name
|
||||
|
||||
if not frappe.db.exists("Project", args.project_name):
|
||||
project.insert()
|
||||
project.insert()
|
||||
|
||||
return project
|
||||
|
||||
|
||||
Reference in New Issue
Block a user