From 08cd8a0e757860381bd3896ddc0a8d482c5cc529 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Fri, 3 May 2024 13:18:10 +0200 Subject: [PATCH] fix: create Project from Template set Project Type and Start Date --- .../projects/doctype/project_template/test_project_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/projects/doctype/project_template/test_project_template.py b/erpnext/projects/doctype/project_template/test_project_template.py index 08e512ca5371..d70dd2f5cda1 100644 --- a/erpnext/projects/doctype/project_template/test_project_template.py +++ b/erpnext/projects/doctype/project_template/test_project_template.py @@ -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})