From 65b2e1fc33b920a0dbcca840845b181f4622bfe2 Mon Sep 17 00:00:00 2001 From: Christian Werner Date: Thu, 8 Jun 2023 16:30:40 +0200 Subject: [PATCH] fix: set parent_project when creating a new timesheet (#35607) fix "When Creating a new Timesheet from an Task - parent_project is empty" #35578 --- erpnext/projects/doctype/task/task.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/projects/doctype/task/task.py b/erpnext/projects/doctype/task/task.py index b9f4ec6ad1..333d4d9b6a 100755 --- a/erpnext/projects/doctype/task/task.py +++ b/erpnext/projects/doctype/task/task.py @@ -304,6 +304,7 @@ def set_tasks_as_overdue(): @frappe.whitelist() def make_timesheet(source_name, target_doc=None, ignore_permissions=False): def set_missing_values(source, target): + target.parent_project = source.project target.append( "time_logs", {