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 68cde92 commit 3a02602
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def make_project_template(project_template_name, project_tasks=None):
create_task(subject="_Test Template Task 1", is_template=1, begin=0, duration=3),
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")
doc = frappe.get_doc(
{"doctype": "Project Template", "name": "project_template_name", "project_type": "Internal"}
)
for task in project_tasks:
doc.append("tasks", {"task": task.name})
doc.insert()
Expand Down

0 comments on commit 3a02602

Please sign in to comment.