Skip to content

Commit

Permalink
fix: create Project from Template set Project Type and Start Date
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed May 3, 2024
1 parent 7ad1214 commit 08cd8a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def make_project_template(project_template_name, project_tasks=None):
create_task(subject="_Test Template Task 2", is_template=1, begin=0, duration=2),
]
doc = frappe.get_doc(
{"doctype": "Project Template", "name": "project_template_name", "project_type": "Internal"}
{"doctype": "Project Template", "name": project_template_name, "project_type": "Internal"}
)
for task in project_tasks:
doc.append("tasks", {"task": task.name})
Expand Down

0 comments on commit 08cd8a0

Please sign in to comment.